[BACK]Return to ch.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Diff for /src/usr.bin/less/ch.c between version 1.6 and 1.7

version 1.6, 2003/08/06 21:08:07 version 1.7, 2006/04/02 00:55:32
Line 190 
Line 190 
                  */                   */
                 if (!(ch_flags & CH_CANSEEK))                  if (!(ch_flags & CH_CANSEEK))
                         return ('?');                          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);                          error("seek error", NULL_PARG);
                         clear_eol();                          clear_eol();
Line 620 
Line 620 
         }          }
 #endif  #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,                   * Warning only; even if the seek fails for some reason,
Line 709 
Line 709 
                 return (0);                  return (0);
         }          }
 #endif  #endif
         return (lseek(f, (off_t)1, 0) != BAD_LSEEK);          return (lseek(f, (off_t)1, SEEK_SET) != BAD_LSEEK);
 }  }
   
 /*  /*

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7