diff options
author | bde <bde@FreeBSD.org> | 1997-07-06 04:13:20 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-07-06 04:13:20 +0000 |
commit | a7e4624113034e193e5114313082f61ac9e53dff (patch) | |
tree | faf43d0579c7ca80f7bbc91bc9174e1c68deedc2 | |
parent | 71773196f63219747dfc758058cf4204cd0da942 (diff) | |
download | FreeBSD-src-a7e4624113034e193e5114313082f61ac9e53dff.zip FreeBSD-src-a7e4624113034e193e5114313082f61ac9e53dff.tar.gz |
Importing Lite2 broke lookup() to return -1 for the nmatches == 0 case.
Fixed.
-rw-r--r-- | usr.bin/systat/cmds.c | 6 |
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); } |