diff options
author | Thomas Wouters <thomas@python.org> | 2000-07-22 18:47:25 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-07-22 18:47:25 (GMT) |
commit | f70ef4f8606f99744252a804229d53a4d97601c1 (patch) | |
tree | be401f2f10b39f0603e4cc0ae091335890410b7f /Python/getcwd.c | |
parent | 0452d1f316903f0553a0d92e0673ff37247cdfa5 (diff) | |
download | cpython-f70ef4f8606f99744252a804229d53a4d97601c1.zip cpython-f70ef4f8606f99744252a804229d53a4d97601c1.tar.gz cpython-f70ef4f8606f99744252a804229d53a4d97601c1.tar.bz2 |
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
declarations yet, those come later.
Diffstat (limited to 'Python/getcwd.c')
-rw-r--r-- | Python/getcwd.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Python/getcwd.c b/Python/getcwd.c index 7646d83..ad9eb17 100644 --- a/Python/getcwd.c +++ b/Python/getcwd.c @@ -26,12 +26,10 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #define MAXPATHLEN 1024 #endif -extern char *getwd(); +extern char *getwd(char *); char * -getcwd(buf, size) - char *buf; - int size; +getcwd(char *buf, int size) { char localbuf[MAXPATHLEN+1]; char *ret; @@ -62,9 +60,7 @@ getcwd(buf, size) #endif char * -getcwd(buf, size) - char *buf; - int size; +getcwd(char *buf, int size) { FILE *fp; char *p; |