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-82d1c1f84ae23793d81b50aa0a753ad7c4db4f51.tar.gz
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)
{
char *arg;
pid_t pid;
- int signo = SIGTERM, errors = 0, quiet = 0;
+ int signo = SIGTERM, errors = 0;
+#if ENABLE_KILL || ENABLE_KILLALL
+ int quiet = 0;
+#endif
#if KILL_APPLET_CNT == 1
# define is_killall ENABLE_KILLALL
@@ -170,7 +173,9 @@ int kill_main(int argc UNUSED_PARAM, char **argv)
/* The -q quiet option */
if (is_killall && arg[1] == 'q' && arg[2] == '\0') {
+#if ENABLE_KILL || ENABLE_KILLALL
quiet = 1;
+#endif
arg = *++argv;
if (!arg)
bb_show_usage();