diff options
author | delphij <delphij@FreeBSD.org> | 2007-11-16 22:22:17 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2007-11-16 22:22:17 +0000 |
commit | e2b0c4a1d9f9f53e73cf7da116a4546c07cde418 (patch) | |
tree | 0c9762eeda7d2def39527db440983a3ea2c88c41 /contrib/less/filename.c | |
parent | 9680b7d49a594123cfffb2bc9d11614d1a2625d0 (diff) | |
download | FreeBSD-src-e2b0c4a1d9f9f53e73cf7da116a4546c07cde418.zip FreeBSD-src-e2b0c4a1d9f9f53e73cf7da116a4546c07cde418.tar.gz |
Virgin import of less v415.
Diffstat (limited to 'contrib/less/filename.c')
-rw-r--r-- | contrib/less/filename.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/less/filename.c b/contrib/less/filename.c index ea3120f..aa45b76 100644 --- a/contrib/less/filename.c +++ b/contrib/less/filename.c @@ -476,7 +476,7 @@ bin_file(f) if (!seekable(f)) return (0); - if (lseek(f, (off_t)0, 0) == BAD_LSEEK) + if (lseek(f, (off_t)0, SEEK_SET) == BAD_LSEEK) return (0); n = read(f, data, sizeof(data)); for (i = 0; i < n; i++) @@ -505,7 +505,7 @@ seek_filesize(f) { off_t spos; - spos = lseek(f, (off_t)0, 2); + spos = lseek(f, (off_t)0, SEEK_END); if (spos == BAD_LSEEK) return (NULL_POSITION); return ((POSITION) spos); |