summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/systat/cmds.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/systat/cmds.c b/usr.bin/systat/cmds.c
index e374e3f..bbdb58e 100644
--- a/usr.bin/systat/cmds.c
+++ b/usr.bin/systat/cmds.c
@@ -32,7 +32,11 @@
*/
#ifndef lint
+#if 0
static char sccsid[] = "@(#)cmds.c 8.2 (Berkeley) 4/29/95";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <stdlib.h>
@@ -165,7 +169,7 @@ lookup(name)
nmatches++;
}
}
- if (nmatches != 1)
+ if (nmatches > 1)
return ((struct cmdtab *)-1);
return (found);
}
OpenPOWER on IntegriCloud