diff options
author | bde <bde@FreeBSD.org> | 1996-03-27 18:07:29 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-03-27 18:07:29 +0000 |
commit | f8f67e13c61fa230609190b88af220cdedef48ae (patch) | |
tree | 6365d35e0572c1d3bb25305bd4f5deba9c717849 /lib/libc | |
parent | 0994461968aaa568cd9c53aa3987d937f140ca47 (diff) | |
download | FreeBSD-src-f8f67e13c61fa230609190b88af220cdedef48ae.zip FreeBSD-src-f8f67e13c61fa230609190b88af220cdedef48ae.tar.gz |
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.
Diffstat (limited to 'lib/libc')
-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); } |