diff options
Diffstat (limited to 'newlib/libc/stdio/refill.c')
-rw-r--r-- | newlib/libc/stdio/refill.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/newlib/libc/stdio/refill.c b/newlib/libc/stdio/refill.c index 66ce4ca22..74573e8fd 100644 --- a/newlib/libc/stdio/refill.c +++ b/newlib/libc/stdio/refill.c @@ -1,5 +1,3 @@ -/* No user fns here. Pesch 15apr92. */ - /* * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -16,14 +14,16 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +/* No user fns here. Pesch 15apr92. */ +#include <_ansi.h> #include <stdio.h> -#include "local.h" #include <stdlib.h> +#include "local.h" static int -lflush (fp) - FILE *fp; +_DEFUN(lflush, (fp), + FILE *fp) { if ((fp->_flags & (__SLBF | __SWR)) == (__SLBF | __SWR)) return fflush (fp); @@ -36,8 +36,8 @@ lflush (fp) */ int -_DEFUN (__srefill, (fp), - register FILE * fp) +_DEFUN(__srefill, (fp), + register FILE * fp) { /* make sure stdio is set up */ @@ -94,7 +94,7 @@ _DEFUN (__srefill, (fp), */ if (fp->_flags & (__SLBF | __SNBF)) - (void) _fwalk (_GLOBAL_REENT, lflush); + _CAST_VOID _fwalk (_GLOBAL_REENT, lflush); fp->_p = fp->_bf._base; fp->_r = (*fp->_read) (fp->_cookie, (char *) fp->_p, fp->_bf._size); fp->_flags &= ~__SMOD; /* buffer contents are again pristine */ |