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

Diff for /src/usr.bin/diff/diffreg.c between version 1.11 and 1.12

version 1.11, 2003/06/25 03:50:27 version 1.12, 2003/06/25 03:53:59
Line 398 
Line 398 
         struct line *p;          struct line *p;
         int j, h;          int j, h;
   
         fseek(fd, 0, 0);          fseek(fd, (off_t)0, SEEK_SET);
         p = talloc(3 * sizeof(struct line));          p = talloc(3 * sizeof(struct line));
         for (j = 0; (h = readhash(fd));) {          for (j = 0; (h = readhash(fd));) {
                 p = ralloc(p, (++j + 3) * sizeof(struct line));                  p = ralloc(p, (++j + 3) * sizeof(struct line));
Line 911 
Line 911 
                 inifdef = 1 + oldfile;                  inifdef = 1 + oldfile;
         }          }
         for (i = a; i <= b; i++) {          for (i = a; i <= b; i++) {
                 fseek(lb, f[i - 1], 0);                  fseek(lb, f[i - 1], SEEK_SET);
                 nc = f[i] - f[i - 1];                  nc = f[i] - f[i - 1];
                 if (opt != D_IFDEF)                  if (opt != D_IFDEF)
                         prints(s);                          prints(s);
Line 1016 
Line 1016 
         char buf[BUFSIZ], *cp;          char buf[BUFSIZ], *cp;
         int cnt;          int cnt;
   
         fseek(f, 0, 0);          fseek(f, (off_t)0, SEEK_SET);
         cnt = fread(buf, 1, BUFSIZ, f);          cnt = fread(buf, 1, BUFSIZ, f);
         cp = buf;          cp = buf;
         while (--cnt >= 0)          while (--cnt >= 0)

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