aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-12-31 17:30:02 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-12-31 17:30:02 +0100
commit82d1c1f84ae23793d81b50aa0a753ad7c4db4f51 (patch)
treee5c1dc00b04299cf627cf2ef18453aea96c5f1e5 /procps
parent36acc4631c94bb0f43ecaac5d61dc773ef773e91 (diff)
downloadbusybox-w32-82d1c1f84ae23793d81b50aa0a753ad7c4db4f51.tar.gz
busybox-w32-82d1c1f84ae23793d81b50aa0a753ad7c4db4f51.tar.bz2
busybox-w32-82d1c1f84ae23793d81b50aa0a753ad7c4db4f51.zip
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps')
-rw-r--r--procps/kill.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/procps/kill.c b/procps/kill.c
index 24cc903fc..c95afb8b3 100644
--- a/procps/kill.c
+++ b/procps/kill.c
@@ -108,7 +108,10 @@ int kill_main(int argc UNUSED_PARAM, char **argv)
108{ 108{
109 char *arg; 109 char *arg;
110 pid_t pid; 110 pid_t pid;
111 int signo = SIGTERM, errors = 0, quiet = 0; 111 int signo = SIGTERM, errors = 0;
112#if ENABLE_KILL || ENABLE_KILLALL
113 int quiet = 0;
114#endif
112 115
113#if KILL_APPLET_CNT == 1 116#if KILL_APPLET_CNT == 1
114# define is_killall ENABLE_KILLALL 117# define is_killall ENABLE_KILLALL
@@ -170,7 +173,9 @@ int kill_main(int argc UNUSED_PARAM, char **argv)
170 173
171 /* The -q quiet option */ 174 /* The -q quiet option */
172 if (is_killall && arg[1] == 'q' && arg[2] == '\0') { 175 if (is_killall && arg[1] == 'q' && arg[2] == '\0') {
176#if ENABLE_KILL || ENABLE_KILLALL
173 quiet = 1; 177 quiet = 1;
178#endif
174 arg = *++argv; 179 arg = *++argv;
175 if (!arg) 180 if (!arg)
176 bb_show_usage(); 181 bb_show_usage();