diff options
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/ftell.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/ftell.c b/lib/libc/stdio/ftell.c index de9064f..abffc3e 100644 --- a/lib/libc/stdio/ftell.c +++ b/lib/libc/stdio/ftell.c @@ -61,7 +61,7 @@ ftell(fp) } #ifdef _THREAD_SAFE - _thread_flockfile((FILE *) fp,__FILE__,__LINE__); + _thread_flockfile(fp, __FILE__, __LINE__); #endif /* * Find offset of underlying I/O object, then @@ -71,9 +71,9 @@ ftell(fp) pos = fp->_offset; else { pos = (*fp->_seek)(fp->_cookie, (fpos_t)0, SEEK_CUR); - if (pos == -1L) { + if (pos == -1) { #ifdef _THREAD_SAFE - _thread_funlockfile((FILE *) fp); + _thread_funlockfile(fp); #endif return (pos); } @@ -96,7 +96,7 @@ ftell(fp) pos += fp->_p - fp->_bf._base; } #ifdef _THREAD_SAFE - _thread_funlockfile((FILE *) fp); + _thread_funlockfile(fp); #endif return (pos); } |