diff options
Diffstat (limited to 'newlib/libc/stdio/fgetpos.c')
-rw-r--r-- | newlib/libc/stdio/fgetpos.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/newlib/libc/stdio/fgetpos.c b/newlib/libc/stdio/fgetpos.c index a89d88f..21a6378 100644 --- a/newlib/libc/stdio/fgetpos.c +++ b/newlib/libc/stdio/fgetpos.c @@ -81,15 +81,12 @@ _DEFUN(_fgetpos_r, (ptr, fp, pos), FILE * fp _AND _fpos_t * pos) { - _flockfile (fp); *pos = _ftell_r (ptr, fp); if (*pos != -1) { - _funlockfile (fp); return 0; } - _funlockfile (fp); return 1; } |