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

Diff for /src/usr.bin/sort/sort.c between version 1.57 and 1.58

version 1.57, 2015/04/01 20:24:12 version 1.58, 2015/04/01 20:28:04
Line 561 
Line 561 
   
         if (second) {          if (second) {
                 errno = 0;                  errno = 0;
                 ks->f2 = (size_t) strtoul(f, NULL, 10);                  ks->f2 = (size_t)strtoul(f, NULL, 10);
                 if (errno != 0)                  if (errno != 0)
                         err(2, "-k");                          goto end;
                 if (ks->f2 == 0) {                  if (ks->f2 == 0) {
                         warn("0 field in key specs");                          warn("0 field in key specs");
                         goto end;                          goto end;
                 }                  }
         } else {          } else {
                 errno = 0;                  errno = 0;
                 ks->f1 = (size_t) strtoul(f, NULL, 10);                  ks->f1 = (size_t)strtoul(f, NULL, 10);
                 if (errno != 0)                  if (errno != 0)
                         err(2, "-k");                          goto end;
                 if (ks->f1 == 0) {                  if (ks->f1 == 0) {
                         warn("0 field in key specs");                          warn("0 field in key specs");
                         goto end;                          goto end;
Line 588 
Line 588 
   
                 if (second) {                  if (second) {
                         errno = 0;                          errno = 0;
                         ks->c2 = (size_t) strtoul(c, NULL, 10);                          ks->c2 = (size_t)strtoul(c, NULL, 10);
                         if (errno != 0)                          if (errno != 0)
                                 err(2, "-k");                                  goto end;
                 } else {                  } else {
                         errno = 0;                          errno = 0;
                         ks->c1 = (size_t) strtoul(c, NULL, 10);                          ks->c1 = (size_t)strtoul(c, NULL, 10);
                         if (errno != 0)                          if (errno != 0)
                                 err(2, "-k");                                  goto end;
                         if (ks->c1 == 0) {                          if (ks->c1 == 0) {
                                 warn("0 column in key specs");                                  warn("0 column in key specs");
                                 goto end;                                  goto end;

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58