summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-09-01 14:48:45 +0000
committerache <ache@FreeBSD.org>2001-09-01 14:48:45 +0000
commit20c6fc0914ac6458f420965d5f0770cc7488cb80 (patch)
tree1b7cf097765d63fc9208f9d95429ea2024eb62b9 /lib
parent0c69b0498400f6664df5375fcebf996ba7719f42 (diff)
downloadFreeBSD-src-20c6fc0914ac6458f420965d5f0770cc7488cb80.zip
FreeBSD-src-20c6fc0914ac6458f420965d5f0770cc7488cb80.tar.gz
Remove two checks unneeded now (can't happens)
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/fseek.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libc/stdio/fseek.c b/lib/libc/stdio/fseek.c
index b2d98a9..0e1d461 100644
--- a/lib/libc/stdio/fseek.c
+++ b/lib/libc/stdio/fseek.c
@@ -236,14 +236,10 @@ _fseeko(fp, offset, whence, ltest)
goto abspos;
curoff += fp->_r; /* kill off ungetc */
n = fp->_extra->_up - fp->_bf._base;
- if (curoff < 0 && -((off_t)n) < OFF_MIN - curoff)
- goto abspos;
curoff -= n;
n += fp->_ur;
} else {
n = fp->_p - fp->_bf._base;
- if (curoff < 0 && -((off_t)n) < OFF_MIN - curoff)
- goto abspos;
curoff -= n;
n += fp->_r;
}
OpenPOWER on IntegriCloud