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

Diff for /src/usr.bin/systat/Attic/cmds.c between version 1.2 and 1.3

version 1.2, 1996/05/22 11:35:30 version 1.3, 1996/06/25 15:20:07
Line 110 
Line 110 
         }          }
         p = lookup(cmd);          p = lookup(cmd);
         if (p == (struct cmdtab *)-1) {          if (p == (struct cmdtab *)-1) {
                 /* if not a primary command, try a display specific one */                  error("%s: Ambiguous command.", cmd);
                 if (curcmd->c_cmd == 0 || !(*curcmd->c_cmd)(cmd, cp))  
                         error("%s: Ambiguous command.", cmd);  
                 goto done;                  goto done;
         }          }
         if (p) {          if (p) {
Line 142 
Line 140 
                 status();                  status();
                 goto done;                  goto done;
         }          }
           if (curcmd->c_cmd == 0 || !(*curcmd->c_cmd)(cmd, cp))
                   error("%s: Unknown command.", cmd);
 done:  done:
         sigsetmask(omask);          sigsetmask(omask);
 }  }
Line 170 
Line 170 
                                 nmatches++;                                  nmatches++;
                 }                  }
         }          }
         if (nmatches != 1)          if (nmatches > 1)
                 return ((struct cmdtab *)-1);                  return ((struct cmdtab *)-1);
         return (found);          return (found);
 }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3