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

Diff for /src/usr.bin/less/filename.c between version 1.10 and 1.11

version 1.10, 2004/08/23 17:56:20 version 1.11, 2006/04/02 00:55:32
Line 492 
Line 492 
   
         if (!seekable(f))          if (!seekable(f))
                 return (0);                  return (0);
         if (lseek(f, (off_t)0, 0) == BAD_LSEEK)          if (lseek(f, (off_t)0, SEEK_SET) == BAD_LSEEK)
                 return (0);                  return (0);
         n = read(f, data, sizeof(data));          n = read(f, data, sizeof(data));
         for (i = 0;  i < n;  i++)          for (i = 0;  i < n;  i++)
Line 510 
Line 510 
 {  {
         off_t spos;          off_t spos;
   
         spos = lseek(f, (off_t)0, 2);          spos = lseek(f, (off_t)0, SEEK_END);
         if (spos == BAD_LSEEK)          if (spos == BAD_LSEEK)
                 return (NULL_POSITION);                  return (NULL_POSITION);
         return ((POSITION) spos);          return ((POSITION) spos);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11