summaryrefslogtreecommitdiff
path: root/usr.bin/less/ch.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-02 00:55:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-02 00:55:33 +0000
commitef3ac225d43f08544fd2f6bbb0da41bedb60f965 (patch)
tree78dbd83e8c891eba5494b0fac59bab64e610317b /usr.bin/less/ch.c
parent979a4130198cf695fa53864ef389566d313a5a9f (diff)
use SEEK_* for lseek()
Diffstat (limited to 'usr.bin/less/ch.c')
-rw-r--r--usr.bin/less/ch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/less/ch.c b/usr.bin/less/ch.c
index 0966dca9872..b96fbc12f49 100644
--- a/usr.bin/less/ch.c
+++ b/usr.bin/less/ch.c
@@ -190,7 +190,7 @@ fch_get()
*/
if (!(ch_flags & CH_CANSEEK))
return ('?');
- if (lseek(ch_file, (off_t)pos, 0) == BAD_LSEEK)
+ if (lseek(ch_file, (off_t)pos, SEEK_SET) == BAD_LSEEK)
{
error("seek error", NULL_PARG);
clear_eol();
@@ -620,7 +620,7 @@ ch_flush()
}
#endif
- if (lseek(ch_file, (off_t)0, 0) == BAD_LSEEK)
+ if (lseek(ch_file, (off_t)0, SEEK_SET) == BAD_LSEEK)
{
/*
* Warning only; even if the seek fails for some reason,
@@ -709,7 +709,7 @@ seekable(f)
return (0);
}
#endif
- return (lseek(f, (off_t)1, 0) != BAD_LSEEK);
+ return (lseek(f, (off_t)1, SEEK_SET) != BAD_LSEEK);
}
/*