diff options
| author | 2004-09-28 18:12:43 +0000 | |
|---|---|---|
| committer | 2004-09-28 18:12:43 +0000 | |
| commit | 4e503363ea24eb948007e522d9ad8e1f643f3b3e (patch) | |
| tree | 5da40ac25045720192f4bedcf0c8cbadb6352dfd /lib/libc/stdio/setbuffer.c | |
| parent | Fix unsigned {int, long, long long} to long double conversions for (diff) | |
| download | wireguard-openbsd-4e503363ea24eb948007e522d9ad8e1f643f3b3e.tar.xz wireguard-openbsd-4e503363ea24eb948007e522d9ad8e1f643f3b3e.zip | |
deregister + ansify, no change in object code. ok deraadt@ millert@
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)); |
