diff options
Diffstat (limited to 'newlib/libc/stdio/ferror.c')
-rw-r--r-- | newlib/libc/stdio/ferror.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/newlib/libc/stdio/ferror.c b/newlib/libc/stdio/ferror.c index ea701bec7..19fa78d14 100644 --- a/newlib/libc/stdio/ferror.c +++ b/newlib/libc/stdio/ferror.c @@ -53,22 +53,15 @@ No supporting OS subroutines are required. static char sccsid[] = "%W% (Berkeley) %G%"; #endif /* LIBC_SCCS and not lint */ -#include <_ansi.h> #include <stdio.h> -#include "local.h" /* A subroutine version of the macro ferror. */ #undef ferror int -_DEFUN(ferror, (fp), - FILE * fp) +_DEFUN (ferror, (fp), + FILE * fp) { - int result; - CHECK_INIT(_REENT); - _flockfile (fp); - result = __sferror (fp); - _funlockfile (fp); - return result; + return __sferror (fp); } |