summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/ferror.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/ferror.c')
-rw-r--r--newlib/libc/stdio/ferror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/ferror.c b/newlib/libc/stdio/ferror.c
index 72b7ce2c5..0cd3c3089 100644
--- a/newlib/libc/stdio/ferror.c
+++ b/newlib/libc/stdio/ferror.c
@@ -67,8 +67,8 @@ _DEFUN(ferror, (fp),
{
int result;
CHECK_INIT(_REENT, fp);
- _flockfile (fp);
+ _newlib_flockfile_start (fp);
result = __sferror (fp);
- _funlockfile (fp);
+ _newlib_flockfile_end (fp);
return result;
}