diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/fuser.c | 2 | ||||
-rw-r--r-- | procps/nmeter.c | 18 | ||||
-rw-r--r-- | procps/pgrep.c | 2 | ||||
-rw-r--r-- | procps/pidof.c | 2 | ||||
-rw-r--r-- | procps/ps.c | 4 | ||||
-rw-r--r-- | procps/renice.c | 2 | ||||
-rw-r--r-- | procps/sysctl.c | 2 | ||||
-rw-r--r-- | procps/top.c | 4 | ||||
-rw-r--r-- | procps/uptime.c | 2 | ||||
-rw-r--r-- | procps/watch.c | 2 |
10 files changed, 20 insertions, 20 deletions
diff --git a/procps/fuser.c b/procps/fuser.c index 55f7917a0..8afa958b6 100644 --- a/procps/fuser.c +++ b/procps/fuser.c | |||
@@ -269,7 +269,7 @@ static int kill_pid_list(pid_list *plist, int sig) | |||
269 | } | 269 | } |
270 | 270 | ||
271 | int fuser_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 271 | int fuser_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
272 | int fuser_main(int argc ATTRIBUTE_UNUSED, char **argv) | 272 | int fuser_main(int argc UNUSED_PARAM, char **argv) |
273 | { | 273 | { |
274 | pid_list *plist; | 274 | pid_list *plist; |
275 | inode_list *ilist; | 275 | inode_list *ilist; |
diff --git a/procps/nmeter.c b/procps/nmeter.c index 205cb8251..8cff0b918 100644 --- a/procps/nmeter.c +++ b/procps/nmeter.c | |||
@@ -274,7 +274,7 @@ typedef struct a { \ | |||
274 | S_STAT(s_stat) | 274 | S_STAT(s_stat) |
275 | S_STAT_END(s_stat) | 275 | S_STAT_END(s_stat) |
276 | 276 | ||
277 | static void collect_literal(s_stat *s ATTRIBUTE_UNUSED) | 277 | static void collect_literal(s_stat *s UNUSED_PARAM) |
278 | { | 278 | { |
279 | } | 279 | } |
280 | 280 | ||
@@ -293,7 +293,7 @@ static s_stat* init_delay(const char *param) | |||
293 | return NULL; | 293 | return NULL; |
294 | } | 294 | } |
295 | 295 | ||
296 | static s_stat* init_cr(const char *param ATTRIBUTE_UNUSED) | 296 | static s_stat* init_cr(const char *param UNUSED_PARAM) |
297 | { | 297 | { |
298 | final_str = "\r"; | 298 | final_str = "\r"; |
299 | return (s_stat*)0; | 299 | return (s_stat*)0; |
@@ -435,7 +435,7 @@ static void collect_ctx(ctx_stat *s) | |||
435 | scale(data[0] - old); | 435 | scale(data[0] - old); |
436 | } | 436 | } |
437 | 437 | ||
438 | static s_stat* init_ctx(const char *param ATTRIBUTE_UNUSED) | 438 | static s_stat* init_ctx(const char *param UNUSED_PARAM) |
439 | { | 439 | { |
440 | ctx_stat *s = xzalloc(sizeof(*s)); | 440 | ctx_stat *s = xzalloc(sizeof(*s)); |
441 | s->collect = collect_ctx; | 441 | s->collect = collect_ctx; |
@@ -477,7 +477,7 @@ static void collect_blk(blk_stat *s) | |||
477 | scale(data[1]*512); | 477 | scale(data[1]*512); |
478 | } | 478 | } |
479 | 479 | ||
480 | static s_stat* init_blk(const char *param ATTRIBUTE_UNUSED) | 480 | static s_stat* init_blk(const char *param UNUSED_PARAM) |
481 | { | 481 | { |
482 | blk_stat *s = xzalloc(sizeof(*s)); | 482 | blk_stat *s = xzalloc(sizeof(*s)); |
483 | s->collect = collect_blk; | 483 | s->collect = collect_blk; |
@@ -490,7 +490,7 @@ S_STAT(fork_stat) | |||
490 | ullong old; | 490 | ullong old; |
491 | S_STAT_END(fork_stat) | 491 | S_STAT_END(fork_stat) |
492 | 492 | ||
493 | static void collect_thread_nr(fork_stat *s ATTRIBUTE_UNUSED) | 493 | static void collect_thread_nr(fork_stat *s UNUSED_PARAM) |
494 | { | 494 | { |
495 | ullong data[1]; | 495 | ullong data[1]; |
496 | 496 | ||
@@ -657,7 +657,7 @@ static s_stat* init_mem(const char *param) | |||
657 | S_STAT(swp_stat) | 657 | S_STAT(swp_stat) |
658 | S_STAT_END(swp_stat) | 658 | S_STAT_END(swp_stat) |
659 | 659 | ||
660 | static void collect_swp(swp_stat *s ATTRIBUTE_UNUSED) | 660 | static void collect_swp(swp_stat *s UNUSED_PARAM) |
661 | { | 661 | { |
662 | ullong s_total[1]; | 662 | ullong s_total[1]; |
663 | ullong s_free[1]; | 663 | ullong s_free[1]; |
@@ -670,7 +670,7 @@ static void collect_swp(swp_stat *s ATTRIBUTE_UNUSED) | |||
670 | scale((s_total[0]-s_free[0]) << 10); | 670 | scale((s_total[0]-s_free[0]) << 10); |
671 | } | 671 | } |
672 | 672 | ||
673 | static s_stat* init_swp(const char *param ATTRIBUTE_UNUSED) | 673 | static s_stat* init_swp(const char *param UNUSED_PARAM) |
674 | { | 674 | { |
675 | swp_stat *s = xzalloc(sizeof(*s)); | 675 | swp_stat *s = xzalloc(sizeof(*s)); |
676 | s->collect = collect_swp; | 676 | s->collect = collect_swp; |
@@ -681,7 +681,7 @@ static s_stat* init_swp(const char *param ATTRIBUTE_UNUSED) | |||
681 | S_STAT(fd_stat) | 681 | S_STAT(fd_stat) |
682 | S_STAT_END(fd_stat) | 682 | S_STAT_END(fd_stat) |
683 | 683 | ||
684 | static void collect_fd(fd_stat *s ATTRIBUTE_UNUSED) | 684 | static void collect_fd(fd_stat *s UNUSED_PARAM) |
685 | { | 685 | { |
686 | ullong data[2]; | 686 | ullong data[2]; |
687 | 687 | ||
@@ -693,7 +693,7 @@ static void collect_fd(fd_stat *s ATTRIBUTE_UNUSED) | |||
693 | scale(data[0] - data[1]); | 693 | scale(data[0] - data[1]); |
694 | } | 694 | } |
695 | 695 | ||
696 | static s_stat* init_fd(const char *param ATTRIBUTE_UNUSED) | 696 | static s_stat* init_fd(const char *param UNUSED_PARAM) |
697 | { | 697 | { |
698 | fd_stat *s = xzalloc(sizeof(*s)); | 698 | fd_stat *s = xzalloc(sizeof(*s)); |
699 | s->collect = collect_fd; | 699 | s->collect = collect_fd; |
diff --git a/procps/pgrep.c b/procps/pgrep.c index 336fa84ba..7b3cd8e50 100644 --- a/procps/pgrep.c +++ b/procps/pgrep.c | |||
@@ -43,7 +43,7 @@ static void act(unsigned pid, char *cmd, int signo, unsigned opt) | |||
43 | } | 43 | } |
44 | 44 | ||
45 | int pgrep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 45 | int pgrep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
46 | int pgrep_main(int argc ATTRIBUTE_UNUSED, char **argv) | 46 | int pgrep_main(int argc UNUSED_PARAM, char **argv) |
47 | { | 47 | { |
48 | unsigned pid = getpid(); | 48 | unsigned pid = getpid(); |
49 | int signo = SIGTERM; | 49 | int signo = SIGTERM; |
diff --git a/procps/pidof.c b/procps/pidof.c index 8ed5a2155..2519473e8 100644 --- a/procps/pidof.c +++ b/procps/pidof.c | |||
@@ -17,7 +17,7 @@ enum { | |||
17 | }; | 17 | }; |
18 | 18 | ||
19 | int pidof_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 19 | int pidof_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
20 | int pidof_main(int argc ATTRIBUTE_UNUSED, char **argv) | 20 | int pidof_main(int argc UNUSED_PARAM, char **argv) |
21 | { | 21 | { |
22 | unsigned first = 1; | 22 | unsigned first = 1; |
23 | unsigned opt; | 23 | unsigned opt; |
diff --git a/procps/ps.c b/procps/ps.c index cfca851cf..c5dff1814 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -422,7 +422,7 @@ static void format_process(const procps_status_t *ps) | |||
422 | } | 422 | } |
423 | 423 | ||
424 | int ps_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 424 | int ps_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
425 | int ps_main(int argc ATTRIBUTE_UNUSED, char **argv) | 425 | int ps_main(int argc UNUSED_PARAM, char **argv) |
426 | { | 426 | { |
427 | procps_status_t *p; | 427 | procps_status_t *p; |
428 | llist_t* opt_o = NULL; | 428 | llist_t* opt_o = NULL; |
@@ -483,7 +483,7 @@ int ps_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
483 | 483 | ||
484 | 484 | ||
485 | int ps_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 485 | int ps_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
486 | int ps_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) | 486 | int ps_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
487 | { | 487 | { |
488 | procps_status_t *p = NULL; | 488 | procps_status_t *p = NULL; |
489 | int len; | 489 | int len; |
diff --git a/procps/renice.c b/procps/renice.c index d2dcf152c..4c309e9d1 100644 --- a/procps/renice.c +++ b/procps/renice.c | |||
@@ -27,7 +27,7 @@ void BUG_bad_PRIO_PGRP(void); | |||
27 | void BUG_bad_PRIO_USER(void); | 27 | void BUG_bad_PRIO_USER(void); |
28 | 28 | ||
29 | int renice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 29 | int renice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
30 | int renice_main(int argc ATTRIBUTE_UNUSED, char **argv) | 30 | int renice_main(int argc UNUSED_PARAM, char **argv) |
31 | { | 31 | { |
32 | static const char Xetpriority_msg[] ALIGN1 = "%cetpriority"; | 32 | static const char Xetpriority_msg[] ALIGN1 = "%cetpriority"; |
33 | 33 | ||
diff --git a/procps/sysctl.c b/procps/sysctl.c index 1995382ad..3607a2364 100644 --- a/procps/sysctl.c +++ b/procps/sysctl.c | |||
@@ -57,7 +57,7 @@ enum { | |||
57 | }; | 57 | }; |
58 | 58 | ||
59 | int sysctl_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 59 | int sysctl_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
60 | int sysctl_main(int argc ATTRIBUTE_UNUSED, char **argv) | 60 | int sysctl_main(int argc UNUSED_PARAM, char **argv) |
61 | { | 61 | { |
62 | int retval; | 62 | int retval; |
63 | int opt; | 63 | int opt; |
diff --git a/procps/top.c b/procps/top.c index 0e1b333a1..e13cd1521 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -519,7 +519,7 @@ static void reset_term(void) | |||
519 | } | 519 | } |
520 | } | 520 | } |
521 | 521 | ||
522 | static void sig_catcher(int sig ATTRIBUTE_UNUSED) | 522 | static void sig_catcher(int sig UNUSED_PARAM) |
523 | { | 523 | { |
524 | reset_term(); | 524 | reset_term(); |
525 | exit(EXIT_FAILURE); | 525 | exit(EXIT_FAILURE); |
@@ -739,7 +739,7 @@ enum { | |||
739 | }; | 739 | }; |
740 | 740 | ||
741 | int top_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 741 | int top_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
742 | int top_main(int argc ATTRIBUTE_UNUSED, char **argv) | 742 | int top_main(int argc UNUSED_PARAM, char **argv) |
743 | { | 743 | { |
744 | int count; | 744 | int count; |
745 | int iterations; | 745 | int iterations; |
diff --git a/procps/uptime.c b/procps/uptime.c index b729055a5..d9aa1d037 100644 --- a/procps/uptime.c +++ b/procps/uptime.c | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | 27 | ||
28 | int uptime_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 28 | int uptime_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
29 | int uptime_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) | 29 | int uptime_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
30 | { | 30 | { |
31 | int updays, uphours, upminutes; | 31 | int updays, uphours, upminutes; |
32 | struct sysinfo info; | 32 | struct sysinfo info; |
diff --git a/procps/watch.c b/procps/watch.c index 7d8e0de1f..5fd051072 100644 --- a/procps/watch.c +++ b/procps/watch.c | |||
@@ -24,7 +24,7 @@ | |||
24 | // (procps 3.x and procps 2.x are forks, not newer/older versions of the same) | 24 | // (procps 3.x and procps 2.x are forks, not newer/older versions of the same) |
25 | 25 | ||
26 | int watch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 26 | int watch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
27 | int watch_main(int argc ATTRIBUTE_UNUSED, char **argv) | 27 | int watch_main(int argc UNUSED_PARAM, char **argv) |
28 | { | 28 | { |
29 | unsigned opt; | 29 | unsigned opt; |
30 | unsigned period = 2; | 30 | unsigned period = 2; |