From a95746d6e34166b1b314544deb28cbd772c150e0 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 17 Aug 2001 10:43:03 +0000 Subject: Remove extra check, already done in upper level caller, i.e. in _fseeko() --- lib/libc/stdio/stdio.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/libc/stdio/stdio.c') diff --git a/lib/libc/stdio/stdio.c b/lib/libc/stdio/stdio.c index 58fafcb..75f59c4 100644 --- a/lib/libc/stdio/stdio.c +++ b/lib/libc/stdio/stdio.c @@ -95,16 +95,12 @@ __sseek(cookie, offset, whence) register FILE *fp = cookie; register off_t ret; + ret = lseek(fp->_file, (off_t)offset, whence); /* * Disallow negative seeks per POSIX. * It is needed here to help upper level caller * (fseek) in the cases it can't detect. */ - if (whence == SEEK_SET && (off_t)offset < 0) { - errno = EINVAL; - return (-1); - } - ret = lseek(fp->_file, (off_t)offset, whence); if (ret < 0) { if (ret != -1) { /* Resulting seek is negative! */ -- cgit v1.1