Mercurial > cpython-lru_cache-weakref
diff Python/getcwd.c @ 13658:f79434ee41fa legacy-trunk
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
declarations yet, those come later.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Sat, 22 Jul 2000 18:47:25 +0000 |
| parents | 87ee82e5c56d |
| children | 6f6f965c5e2d |
line wrap: on
line diff
--- a/Python/getcwd.c Sat Jul 22 18:45:06 2000 +0000 +++ b/Python/getcwd.c Sat Jul 22 18:47:25 2000 +0000 @@ -26,12 +26,10 @@ #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 @@ #endif char * -getcwd(buf, size) - char *buf; - int size; +getcwd(char *buf, int size) { FILE *fp; char *p;
