diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2000-12-06 03:15:49 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2000-12-06 03:15:49 +0000 |
| commit | ef80a53495fe3b7ff0a974f0c382a10873ce723d (patch) | |
| tree | b17d13a6c936ff38b65f307586112188acdffa4b /lib/libc/gen/closedir.c | |
| parent | 9b8551d0a5a8c9210cceeb570ab35efa1a111974 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/closedir.c')
| -rw-r--r-- | lib/libc/gen/closedir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/closedir.c b/lib/libc/gen/closedir.c index 86de88d203df..69f1232815c7 100644 --- a/lib/libc/gen/closedir.c +++ b/lib/libc/gen/closedir.c @@ -42,14 +42,14 @@ static char sccsid[] = "@(#)closedir.c 8.1 (Berkeley) 6/10/93"; #include <stdlib.h> #include <unistd.h> -extern void _reclaim_telldir __P(( const DIR * )); +extern void _reclaim_telldir __P((DIR *)); /* * close a directory. */ int closedir(dirp) - register DIR *dirp; + DIR *dirp; { int fd; @@ -58,7 +58,7 @@ closedir(dirp) dirp->dd_fd = -1; dirp->dd_loc = 0; free((void *)dirp->dd_buf); - free((void *)dirp); _reclaim_telldir(dirp); + free((void *)dirp); return(_close(fd)); } |
