summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-03-05 08:29:56 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-03-05 08:29:56 +0000
commite07b90bb4951b98b586ca51203462a5039b471bb (patch)
tree562f24e4005178c219ace258a0e89de5c75fb7f0 /lib/libc
parent65276a5e6cc3020e27a37c4456c6b174a31db902 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/closedir.c6
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));
}