aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/iofgets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/iofgets.c b/libio/iofgets.c
index 369251f..4d4ce5c 100644
--- a/libio/iofgets.c
+++ b/libio/iofgets.c
@@ -35,8 +35,8 @@ _IO_fgets (buf, n, fp)
CHECK_FILE (fp, NULL);
if (n <= 0)
return NULL;
- __libc_cleanup_region_start (&_IO_funlockfile, fp);
- _IO_flockfile (fp);
+ __libc_cleanup_region_start (&__funlockfile, fp);
+ __flockfile (fp);
count = _IO_getline (fp, buf, n - 1, '\n', 1);
if (count == 0 || (fp->_IO_file_flags & _IO_ERR_SEEN))
result = NULL;