diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1997-09-02 12:55:01 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1997-09-02 12:55:01 +0000 |
commit | 1517cea772058b0fcbe778d05b8b99c7e6f3b25f (patch) | |
tree | a2d817fe623f81b7729ed3cd2e128cad91eca02b /otherlibs/unix/getcwd.c | |
parent | d75918f7e459b507ac6b4b95f14df0a1eedd4937 (diff) |
Sources C convertis en ANSI C
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1696 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/getcwd.c')
-rw-r--r-- | otherlibs/unix/getcwd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/otherlibs/unix/getcwd.c b/otherlibs/unix/getcwd.c index 5d97b0ba4..1c7b19f73 100644 --- a/otherlibs/unix/getcwd.c +++ b/otherlibs/unix/getcwd.c @@ -23,7 +23,7 @@ #define MAXPATHLEN 512 #endif -value unix_getcwd() /* ML */ +value unix_getcwd(value unit) /* ML */ { char buff[MAXPATHLEN]; if (getcwd(buff, sizeof(buff)) == 0) uerror("getcwd", Nothing); @@ -35,7 +35,7 @@ value unix_getcwd() /* ML */ #include <sys/param.h> -value unix_getcwd() +value unix_getcwd(value unit) { char buff[MAXPATHLEN]; if (getwd(buff) == 0) uerror("getcwd", copy_string(buff)); @@ -44,7 +44,8 @@ value unix_getcwd() #else -value unix_getcwd() { invalid_argument("getcwd not implemented"); } +value unix_getcwd(value unit) +{ invalid_argument("getcwd not implemented"); } #endif #endif |