aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-10-19 05:10:06 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-10-19 05:10:06 +0000
commitdc5c110e4a9f03493c2cf4b2b2d0658d5a38f70d (patch)
treed221b7d852702662ab92bc722ef655df4179e0da /usr.bin/systat
parent51c325635507e591f7a53b9d3e6b926da23fb845 (diff)
downloadsrc-dc5c110e4a9f03493c2cf4b2b2d0658d5a38f70d.tar.gz
src-dc5c110e4a9f03493c2cf4b2b2d0658d5a38f70d.zip
Notes
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c
index f9f767269df6..c11c5532144b 100644
--- a/usr.bin/systat/main.c
+++ b/usr.bin/systat/main.c
@@ -88,6 +88,11 @@ main(argc, argv)
p = lookup(&argv[0][1]);
if (p == (struct cmdtab *)-1) {
+ fprintf(stderr, "%s: ambiguous request\n",
+ &argv[0][1]);
+ exit(1);
+ }
+ if (p == (struct cmdtab *)0) {
fprintf(stderr, "%s: unknown request\n",
&argv[0][1]);
exit(1);