summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/setbuffer.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2009-10-25 20:44:13 +0000
committerchristos <christos@NetBSD.org>2009-10-25 20:44:13 +0000
commitcfbb35ed03a728123e8b9a6fc3e6f688657b2daa (patch)
tree0f40e7597aefe9c2df7b0b9131814df2b45f3869 /lib/libc/stdio/setbuffer.c
parent4cdf2079e4af97a8307d4da723b035c6cc63f3a0 (diff)
revert some of dsl's changes to make things build on i386; he can undo what
he wants when he comes back.
Diffstat (limited to 'lib/libc/stdio/setbuffer.c')
-rw-r--r--lib/libc/stdio/setbuffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/setbuffer.c b/lib/libc/stdio/setbuffer.c
index a3ddf9d0499..6ef5b352499 100644
--- a/lib/libc/stdio/setbuffer.c
+++ b/lib/libc/stdio/setbuffer.c
@@ -1,4 +1,4 @@
-/* $NetBSD: setbuffer.c,v 1.11 2009/10/24 15:20:15 dsl Exp $ */
+/* $NetBSD: setbuffer.c,v 1.12 2009/10/25 20:44:13 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)setbuffer.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: setbuffer.c,v 1.11 2009/10/24 15:20:15 dsl Exp $");
+__RCSID("$NetBSD: setbuffer.c,v 1.12 2009/10/25 20:44:13 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -55,7 +55,7 @@ setbuffer(fp, buf, size)
_DIAGASSERT(fp != NULL);
/* buf may be NULL */
- (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size);
+ (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, (size_t)size);
}
/*
@@ -68,5 +68,5 @@ setlinebuf(fp)
_DIAGASSERT(fp != NULL);
- return (setvbuf(fp, NULL, _IOLBF, 0));
+ return (setvbuf(fp, NULL, _IOLBF, (size_t)0));
}