randomconfig fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2017-12-31 17:30:02 +01:00
parent 36acc4631c
commit 82d1c1f84a
13 changed files with 43 additions and 22 deletions

View File

@ -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();