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

Diff for /src/usr.bin/sort/Attic/init.c between version 1.9 and 1.10

version 1.9, 2006/11/16 00:14:34 version 1.10, 2007/04/02 08:04:52
Line 115 
Line 115 
         int tmp;          int tmp;
   
         col = cur_fld->icol.num ? (&(*cur_fld).tcol) : (&(*cur_fld).icol);          col = cur_fld->icol.num ? (&(*cur_fld).tcol) : (&(*cur_fld).icol);
         pos += sscanf(pos, "%d", &(col->num));          if (sscanf(pos, "%d", &(col->num)) != 1)
                   errx(2, "missing field number");
           pos++;
         while (isdigit(*pos))          while (isdigit(*pos))
                 pos++;                  pos++;
         if (col->num <= 0 && !(col->num == 0 && col == &(cur_fld->tcol)))          if (col->num <= 0 && !(col->num == 0 && col == &(cur_fld->tcol)))
Line 124 
Line 126 
                 if (!col->num)                  if (!col->num)
                         errx(2, "cannot indent end of line");                          errx(2, "cannot indent end of line");
                 pos++;                  pos++;
                 pos += sscanf(pos, "%d", &(col->indent));                  if (sscanf(pos, "%d", &(col->indent)) != 1)
                           errx(2, "missing offset");
                   pos++;
                 while (isdigit(*pos))                  while (isdigit(*pos))
                         pos++;                          pos++;
                 if (&cur_fld->icol == col)                  if (&cur_fld->icol == col)

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