aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
Diffstat (limited to 'procps')
-rw-r--r--procps/kill.c7
-rw-r--r--procps/mpstat.c2
-rw-r--r--procps/powertop.c2
3 files changed, 8 insertions, 3 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();
diff --git a/procps/mpstat.c b/procps/mpstat.c
index b1ac09d75..3c72f2705 100644
--- a/procps/mpstat.c
+++ b/procps/mpstat.c
@@ -840,7 +840,7 @@ static int get_irqcpu_nr(const char *f, int max_irqs)
840//usage: "\n -u Report CPU utilization" 840//usage: "\n -u Report CPU utilization"
841 841
842int mpstat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 842int mpstat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
843int mpstat_main(int UNUSED_PARAM argc, char **argv) 843int mpstat_main(int argc UNUSED_PARAM, char **argv)
844{ 844{
845 char *opt_irq_fmt; 845 char *opt_irq_fmt;
846 char *opt_set_cpu; 846 char *opt_set_cpu;
diff --git a/procps/powertop.c b/procps/powertop.c
index 2872035cf..004b4ce19 100644
--- a/procps/powertop.c
+++ b/procps/powertop.c
@@ -686,7 +686,7 @@ static void show_timerstats(void)
686//usage: "Analyze power consumption on Intel-based laptops" 686//usage: "Analyze power consumption on Intel-based laptops"
687 687
688int powertop_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 688int powertop_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
689int powertop_main(int UNUSED_PARAM argc, char UNUSED_PARAM **argv) 689int powertop_main(int argc UNUSED_PARAM, char UNUSED_PARAM **argv)
690{ 690{
691 ullong cur_usage[MAX_CSTATE_COUNT]; 691 ullong cur_usage[MAX_CSTATE_COUNT];
692 ullong cur_duration[MAX_CSTATE_COUNT]; 692 ullong cur_duration[MAX_CSTATE_COUNT];