summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/makebuf.c
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2013-04-23 14:36:44 +0000
committeremaste <emaste@FreeBSD.org>2013-04-23 14:36:44 +0000
commited68431e9eb5f5d79436afe779c4564cc625c69e (patch)
treeeee3d4211d69ff36f950fb608985ae69d9c4c4e1 /lib/libc/stdio/makebuf.c
parent1f1bd98319ba57830e89bfdbf57da9dfa3da9084 (diff)
downloadFreeBSD-src-ed68431e9eb5f5d79436afe779c4564cc625c69e.zip
FreeBSD-src-ed68431e9eb5f5d79436afe779c4564cc625c69e.tar.gz
Convert libc/stdio from K&R to ANSI C
And add '__restrict' where it appeared in the header prototypes
Diffstat (limited to 'lib/libc/stdio/makebuf.c')
-rw-r--r--lib/libc/stdio/makebuf.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libc/stdio/makebuf.c b/lib/libc/stdio/makebuf.c
index 42f77cd..a92087e 100644
--- a/lib/libc/stdio/makebuf.c
+++ b/lib/libc/stdio/makebuf.c
@@ -55,8 +55,7 @@ __FBSDID("$FreeBSD$");
* optimisation) right after the _fstat() that finds the buffer size.
*/
void
-__smakebuf(fp)
- FILE *fp;
+__smakebuf(FILE *fp)
{
void *p;
int flags;
@@ -88,10 +87,7 @@ __smakebuf(fp)
* Internal routine to determine `proper' buffering for a file.
*/
int
-__swhatbuf(fp, bufsize, couldbetty)
- FILE *fp;
- size_t *bufsize;
- int *couldbetty;
+__swhatbuf(FILE *fp, size_t *bufsize, int *couldbetty)
{
struct stat st;
OpenPOWER on IntegriCloud