diff options
Diffstat (limited to 'lib/libc/stdio/refill.c')
-rw-r--r-- | lib/libc/stdio/refill.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libc/stdio/refill.c b/lib/libc/stdio/refill.c index 35af0c0..f0583f7 100644 --- a/lib/libc/stdio/refill.c +++ b/lib/libc/stdio/refill.c @@ -35,7 +35,11 @@ */ #if defined(LIBC_SCCS) && !defined(lint) +#if 0 static char sccsid[] = "@(#)refill.c 8.1 (Berkeley) 6/4/93"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* LIBC_SCCS and not lint */ #include <errno.h> @@ -43,12 +47,14 @@ static char sccsid[] = "@(#)refill.c 8.1 (Berkeley) 6/4/93"; #include <stdlib.h> #include "local.h" -static +static int lflush __P((FILE *)); + +static int lflush(fp) FILE *fp; { - if ((fp->_flags & (__SLBF|__SWR)) == __SLBF|__SWR) + if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR)) return (__sflush(fp)); return (0); } @@ -57,6 +63,7 @@ lflush(fp) * Refill a stdio buffer. * Return EOF on eof or error, 0 otherwise. */ +int __srefill(fp) register FILE *fp; { |