svn commit: r321070 - stable/11/lib/libstand
Xin LI
delphij at FreeBSD.org
Mon Jul 17 06:45:14 UTC 2017
Author: delphij
Date: Mon Jul 17 06:45:13 2017
New Revision: 321070
URL: https://svnweb.freebsd.org/changeset/base/321070
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/11/lib/libstand/bzipfs.c
stable/11/lib/libstand/gzipfs.c
stable/11/lib/libstand/lseek.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/lib/libstand/bzipfs.c
==============================================================================
--- stable/11/lib/libstand/bzipfs.c Mon Jul 17 06:37:46 2017 (r321069)
+++ stable/11/lib/libstand/bzipfs.c Mon Jul 17 06:45:13 2017 (r321070)
@@ -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/11/lib/libstand/gzipfs.c
==============================================================================
--- stable/11/lib/libstand/gzipfs.c Mon Jul 17 06:37:46 2017 (r321069)
+++ stable/11/lib/libstand/gzipfs.c Mon Jul 17 06:45:13 2017 (r321070)
@@ -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/11/lib/libstand/lseek.c
==============================================================================
--- stable/11/lib/libstand/lseek.c Mon Jul 17 06:37:46 2017 (r321069)
+++ stable/11/lib/libstand/lseek.c Mon Jul 17 06:45:13 2017 (r321070)
@@ -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-stable
mailing list