From ed68431e9eb5f5d79436afe779c4564cc625c69e Mon Sep 17 00:00:00 2001 From: emaste Date: Tue, 23 Apr 2013 14:36:44 +0000 Subject: Convert libc/stdio from K&R to ANSI C And add '__restrict' where it appeared in the header prototypes --- lib/libc/stdio/setbuffer.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/libc/stdio/setbuffer.c') diff --git a/lib/libc/stdio/setbuffer.c b/lib/libc/stdio/setbuffer.c index 5081ac96..af5eb3c 100644 --- a/lib/libc/stdio/setbuffer.c +++ b/lib/libc/stdio/setbuffer.c @@ -39,10 +39,7 @@ __FBSDID("$FreeBSD$"); #include void -setbuffer(fp, buf, size) - FILE *fp; - char *buf; - int size; +setbuffer(FILE *fp, char *buf, int size) { (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, (size_t)size); @@ -52,8 +49,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)); -- cgit v1.1