=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/ch.c,v retrieving revision 1.14 retrieving revision 1.15 diff -c -r1.14 -r1.15 *** src/usr.bin/less/ch.c 2015/11/09 16:39:13 1.14 --- src/usr.bin/less/ch.c 2015/11/09 16:42:35 1.15 *************** *** 226,232 **** */ if (!(ch_flags & CH_CANSEEK)) return ('?'); ! if (lseek(ch_file, (off_t)pos, SEEK_SET) == BAD_LSEEK) { error("seek error", NULL); clear_eol(); return (EOI); --- 226,232 ---- */ if (!(ch_flags & CH_CANSEEK)) return ('?'); ! if (lseek(ch_file, (off_t)pos, SEEK_SET) == (off_t)-1) { error("seek error", NULL); clear_eol(); return (EOI); *************** *** 655,661 **** } #endif ! if (lseek(ch_file, (off_t)0, SEEK_SET) == BAD_LSEEK) { /* * Warning only; even if the seek fails for some reason, * there's a good chance we're at the beginning anyway. --- 655,661 ---- } #endif ! if (lseek(ch_file, (off_t)0, SEEK_SET) == (off_t)-1) { /* * Warning only; even if the seek fails for some reason, * there's a good chance we're at the beginning anyway. *************** *** 728,734 **** int seekable(int f) { ! return (lseek(f, (off_t)1, SEEK_SET) != BAD_LSEEK); } /* --- 728,734 ---- int seekable(int f) { ! return (lseek(f, (off_t)1, SEEK_SET) != (off_t)-1); } /*