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

Diff for /src/usr.bin/top/commands.c between version 1.31 and 1.32

version 1.31, 2013/11/28 18:24:55 version 1.32, 2017/03/15 04:24:14
Line 70 
Line 70 
         size_t span;          size_t span;
   
         span = strcspn(str, spaces);          span = strcspn(str, spaces);
         if (span == strlen(str))          if (span == strlen(str))
                 return (NULL);                  return (NULL);
   
         str += span;          str += span;
         *str++  = '\0';          *str++  = '\0';
   
         while (strcspn(str, spaces) == 0)          while (strcspn(str, spaces) == 0)
                 str++;                  str++;
   
         if (*str == '\0')          if (*str == '\0')
Line 301 
Line 301 
                 } else {                  } else {
                         /* translate the name into a number */                          /* translate the name into a number */
                         for (signum = 0; signum < NSIG; signum++) {                          for (signum = 0; signum < NSIG; signum++) {
                                 if (strcasecmp(sys_signame[signum],                                  if (strcasecmp(sys_signame[signum],
                                     str) == 0)                                      str) == 0)
                                         break;                                          break;
                         }                          }

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32