summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fseek.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-08-26 10:38:29 +0000
committerache <ache@FreeBSD.org>2001-08-26 10:38:29 +0000
commit5ba0f943c6131fd6071476c085a049fe7129263a (patch)
tree7bf33378e8da15692046ef3870568fc1c408ae6d /lib/libc/stdio/fseek.c
parenteb7b8850bf2d71f150825f79f3e8208c522ab70c (diff)
downloadFreeBSD-src-5ba0f943c6131fd6071476c085a049fe7129263a.zip
FreeBSD-src-5ba0f943c6131fd6071476c085a049fe7129263a.tar.gz
Cosmetique fixes from bde
Diffstat (limited to 'lib/libc/stdio/fseek.c')
-rw-r--r--lib/libc/stdio/fseek.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libc/stdio/fseek.c b/lib/libc/stdio/fseek.c
index a04a628..f280063 100644
--- a/lib/libc/stdio/fseek.c
+++ b/lib/libc/stdio/fseek.c
@@ -143,7 +143,6 @@ _fseeko(fp, offset, whence, ltest)
} else if (fp->_flags & __SWR && fp->_p != NULL)
curoff += fp->_p - fp->_bf._base;
- /* 'curoff' is always >= 0 */
if (offset > 0 && curoff > OFF_MAX - offset) {
errno = EOVERFLOW;
return (EOF);
@@ -210,7 +209,6 @@ _fseeko(fp, offset, whence, ltest)
else {
if (_fstat(fp->_file, &st))
goto dumb;
- /* 'st.st_size' is always >= 0 */
if (offset > 0 && st.st_size > OFF_MAX - offset) {
errno = EOVERFLOW;
return (EOF);
OpenPOWER on IntegriCloud