diff options
Diffstat (limited to 'lib/libc/stdio/setbuffer.c')
| -rw-r--r-- | lib/libc/stdio/setbuffer.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libc/stdio/setbuffer.c b/lib/libc/stdio/setbuffer.c index 400511bb8be..3135b0ff73c 100644 --- a/lib/libc/stdio/setbuffer.c +++ b/lib/libc/stdio/setbuffer.c @@ -31,16 +31,13 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: setbuffer.c,v 1.3 2003/06/02 20:18:37 millert Exp $"; +static char rcsid[] = "$OpenBSD: setbuffer.c,v 1.4 2004/09/28 18:12:44 otto Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> void -setbuffer(fp, buf, size) - register FILE *fp; - char *buf; - int size; +setbuffer(FILE *fp, char *buf, int size) { (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size); @@ -50,8 +47,7 @@ setbuffer(fp, buf, size) * set line buffering */ int -setlinebuf(fp) - FILE *fp; +setlinebuf(FILE *fp) { return (setvbuf(fp, (char *)NULL, _IOLBF, (size_t)0)); |
