aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
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();