diff options
author | charnier <charnier@FreeBSD.org> | 2003-02-05 14:20:27 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2003-02-05 14:20:27 +0000 |
commit | dd3bdff2f61b90fc7d41aa17f077168d4983c3c2 (patch) | |
tree | 56dd13a801be323ea14302b5f7dd7945c8fe4e27 /usr.bin/killall | |
parent | 75de6b34e599a890ca2bc4f87bff8a3a5874217f (diff) | |
download | FreeBSD-src-dd3bdff2f61b90fc7d41aa17f077168d4983c3c2.zip FreeBSD-src-dd3bdff2f61b90fc7d41aa17f077168d4983c3c2.tar.gz |
Header was included twice. Hardcode program name in usage string.
Diffstat (limited to 'usr.bin/killall')
-rw-r--r-- | usr.bin/killall/killall.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/killall/killall.c b/usr.bin/killall/killall.c index 3ca3b5c..b1fcc25 100644 --- a/usr.bin/killall/killall.c +++ b/usr.bin/killall/killall.c @@ -28,7 +28,6 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include <sys/cdefs.h> #include <sys/param.h> #include <sys/stat.h> #include <sys/user.h> @@ -46,13 +45,11 @@ __FBSDID("$FreeBSD$"); #include <errno.h> #include <unistd.h> -static char *prog; - static void __dead2 usage(void) { - fprintf(stderr, "usage: %s [-l] [-v] [-m] [-sig] [-u user] [-t tty] [-c cmd] [cmd]...\n", prog); + fprintf(stderr, "usage: killall [-l] [-v] [-m] [-sig] [-u user] [-t tty] [-c cmd] [cmd]...\n"); fprintf(stderr, "At least one option or argument to specify processes must be given.\n"); exit(1); } @@ -132,7 +129,6 @@ main(int ac, char **av) int matched; int killed = 0; - prog = av[0]; av++; ac--; |