diff options
Diffstat (limited to 'newlib/libc/stdio/fwrite.c')
-rw-r--r-- | newlib/libc/stdio/fwrite.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/newlib/libc/stdio/fwrite.c b/newlib/libc/stdio/fwrite.c index 663fff62c..1c91632b8 100644 --- a/newlib/libc/stdio/fwrite.c +++ b/newlib/libc/stdio/fwrite.c @@ -61,7 +61,6 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, static char sccsid[] = "%W% (Berkeley) %G%"; #endif /* LIBC_SCCS and not lint */ -#include <_ansi.h> #include <stdio.h> #include <string.h> #if 0 @@ -78,11 +77,11 @@ static char sccsid[] = "%W% (Berkeley) %G%"; */ size_t -_DEFUN(fwrite, (buf, size, count, fp), - _CONST _PTR buf _AND - size_t size _AND - size_t count _AND - FILE * fp) +_DEFUN (fwrite, (buf, size, count, fp), + _CONST _PTR buf _AND + size_t size _AND + size_t count _AND + FILE * fp) { size_t n; struct __suio uio; @@ -99,14 +98,12 @@ _DEFUN(fwrite, (buf, size, count, fp), * generally slow and since this occurs whenever size==0. */ - CHECK_INIT(_REENT); - - _flockfile (fp); + _flockfile(fp); if (__sfvwrite (fp, &uio) == 0) { - _funlockfile (fp); + _funlockfile(fp); return count; } - _funlockfile (fp); + _funlockfile(fp); return (n - uio.uio_resid) / size; } |