diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/fwalk.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/stdio.c | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/libc/stdio/fwalk.c b/lib/libc/stdio/fwalk.c index b1b86c1aca2..41d18a80261 100644 --- a/lib/libc/stdio/fwalk.c +++ b/lib/libc/stdio/fwalk.c @@ -31,7 +31,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: fwalk.c,v 1.5 2004/09/28 18:12:44 otto Exp $"; +static char rcsid[] = "$OpenBSD: fwalk.c,v 1.6 2005/03/30 19:59:03 pat Exp $"; #endif /* LIBC_SCCS and not lint */ #include <errno.h> @@ -40,7 +40,7 @@ static char rcsid[] = "$OpenBSD: fwalk.c,v 1.5 2004/09/28 18:12:44 otto Exp $"; #include "glue.h" int -_fwalk(int (*function)()) +_fwalk(int (*function)(FILE *)) { FILE *fp; int n, ret; diff --git a/lib/libc/stdio/stdio.c b/lib/libc/stdio/stdio.c index b0605e45057..0b8dea835a0 100644 --- a/lib/libc/stdio/stdio.c +++ b/lib/libc/stdio/stdio.c @@ -31,7 +31,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: stdio.c,v 1.6 2004/09/28 18:12:44 otto Exp $"; +static char rcsid[] = "$OpenBSD: stdio.c,v 1.7 2005/03/30 19:59:03 pat Exp $"; #endif /* LIBC_SCCS and not lint */ #include <fcntl.h> @@ -86,9 +86,7 @@ __sseek(void *cookie, fpos_t offset, int whence) } int -__sclose(cookie) - void *cookie; +__sclose(void *cookie) { - return (close(((FILE *)cookie)->_file)); } |