svn commit: r321071 - stable/10/lib/libstand
Xin LI
delphij at FreeBSD.org
Mon Jul 17 06:46:58 UTC 2017
Author: delphij
Date: Mon Jul 17 06:46:57 2017
New Revision: 321071
URL: https://svnweb.freebsd.org/changeset/base/321071
Log:
MFC r320468:
Don't bother to set target for SEEK_END.
While there also collapase SEEK_END into default case in lseek.
Modified:
stable/10/lib/libstand/bzipfs.c
stable/10/lib/libstand/gzipfs.c
stable/10/lib/libstand/lseek.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/lib/libstand/bzipfs.c
==============================================================================
--- stable/10/lib/libstand/bzipfs.c Mon Jul 17 06:45:13 2017 (r321070)
+++ stable/10/lib/libstand/bzipfs.c Mon Jul 17 06:46:57 2017 (r321071)
@@ -320,8 +320,6 @@ bzf_seek(struct open_file *f, off_t offset, int where)
case SEEK_CUR:
target = offset + bzf->bzf_bzstream.total_out_lo32;
break;
- case SEEK_END:
- target = -1;
default:
errno = EINVAL;
return(-1);
Modified: stable/10/lib/libstand/gzipfs.c
==============================================================================
--- stable/10/lib/libstand/gzipfs.c Mon Jul 17 06:45:13 2017 (r321070)
+++ stable/10/lib/libstand/gzipfs.c Mon Jul 17 06:46:57 2017 (r321071)
@@ -300,8 +300,6 @@ zf_seek(struct open_file *f, off_t offset, int where)
case SEEK_CUR:
target = offset + zf->zf_zstream.total_out;
break;
- case SEEK_END:
- target = -1;
default:
errno = EINVAL;
return(-1);
Modified: stable/10/lib/libstand/lseek.c
==============================================================================
--- stable/10/lib/libstand/lseek.c Mon Jul 17 06:45:13 2017 (r321070)
+++ stable/10/lib/libstand/lseek.c Mon Jul 17 06:46:57 2017 (r321071)
@@ -87,7 +87,6 @@ lseek(int fd, off_t offset, int where)
case SEEK_CUR:
f->f_offset += offset;
break;
- case SEEK_END:
default:
errno = EOFFSET;
return (-1);
More information about the svn-src-all
mailing list