From f8f67e13c61fa230609190b88af220cdedef48ae Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 27 Mar 1996 18:07:29 +0000 Subject: Removed now-bogus casts that were to hide the inconsistency between the nonstandard normal version and the standard threaded version. Removed a bogus L in a constant. fpos_t's aren't longs, and casting to fpos_t would be verbose. --- lib/libc/stdio/ftell.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc/stdio') 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); } -- cgit v1.1