diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-05 09:18:54 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-05 09:18:54 +0000 |
commit | a60f84ebf07863e390b72a2b6150e461a1ec18e9 (patch) | |
tree | f59bc665cfe3d2d32622450d80523e3c1265e501 /procps | |
parent | f6efccc0659a2e2978f2021153f34ce92257ad2b (diff) | |
download | busybox-a60f84ebf07863e390b72a2b6150e461a1ec18e9.tar.gz |
*: rename ATTRIBUTE_XXX to just XXX.
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) } int fuser_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int fuser_main(int argc ATTRIBUTE_UNUSED, char **argv) +int fuser_main(int argc UNUSED_PARAM, char **argv) { pid_list *plist; 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 { \ S_STAT(s_stat) S_STAT_END(s_stat) -static void collect_literal(s_stat *s ATTRIBUTE_UNUSED) +static void collect_literal(s_stat *s UNUSED_PARAM) { } @@ -293,7 +293,7 @@ static s_stat* init_delay(const char *param) return NULL; } -static s_stat* init_cr(const char *param ATTRIBUTE_UNUSED) +static s_stat* init_cr(const char *param UNUSED_PARAM) { final_str = "\r"; return (s_stat*)0; @@ -435,7 +435,7 @@ static void collect_ctx(ctx_stat *s) scale(data[0] - old); } -static s_stat* init_ctx(const char *param ATTRIBUTE_UNUSED) +static s_stat* init_ctx(const char *param UNUSED_PARAM) { ctx_stat *s = xzalloc(sizeof(*s)); s->collect = collect_ctx; @@ -477,7 +477,7 @@ static void collect_blk(blk_stat *s) scale(data[1]*512); } -static s_stat* init_blk(const char *param ATTRIBUTE_UNUSED) +static s_stat* init_blk(const char *param UNUSED_PARAM) { blk_stat *s = xzalloc(sizeof(*s)); s->collect = collect_blk; @@ -490,7 +490,7 @@ S_STAT(fork_stat) ullong old; S_STAT_END(fork_stat) -static void collect_thread_nr(fork_stat *s ATTRIBUTE_UNUSED) +static void collect_thread_nr(fork_stat *s UNUSED_PARAM) { ullong data[1]; @@ -657,7 +657,7 @@ static s_stat* init_mem(const char *param) S_STAT(swp_stat) S_STAT_END(swp_stat) -static void collect_swp(swp_stat *s ATTRIBUTE_UNUSED) +static void collect_swp(swp_stat *s UNUSED_PARAM) { ullong s_total[1]; ullong s_free[1]; @@ -670,7 +670,7 @@ static void collect_swp(swp_stat *s ATTRIBUTE_UNUSED) scale((s_total[0]-s_free[0]) << 10); } -static s_stat* init_swp(const char *param ATTRIBUTE_UNUSED) +static s_stat* init_swp(const char *param UNUSED_PARAM) { swp_stat *s = xzalloc(sizeof(*s)); s->collect = collect_swp; @@ -681,7 +681,7 @@ static s_stat* init_swp(const char *param ATTRIBUTE_UNUSED) S_STAT(fd_stat) S_STAT_END(fd_stat) -static void collect_fd(fd_stat *s ATTRIBUTE_UNUSED) +static void collect_fd(fd_stat *s UNUSED_PARAM) { ullong data[2]; @@ -693,7 +693,7 @@ static void collect_fd(fd_stat *s ATTRIBUTE_UNUSED) scale(data[0] - data[1]); } -static s_stat* init_fd(const char *param ATTRIBUTE_UNUSED) +static s_stat* init_fd(const char *param UNUSED_PARAM) { fd_stat *s = xzalloc(sizeof(*s)); 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) } int pgrep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int pgrep_main(int argc ATTRIBUTE_UNUSED, char **argv) +int pgrep_main(int argc UNUSED_PARAM, char **argv) { unsigned pid = getpid(); 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 { }; int pidof_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int pidof_main(int argc ATTRIBUTE_UNUSED, char **argv) +int pidof_main(int argc UNUSED_PARAM, char **argv) { unsigned first = 1; 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) } int ps_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int ps_main(int argc ATTRIBUTE_UNUSED, char **argv) +int ps_main(int argc UNUSED_PARAM, char **argv) { procps_status_t *p; llist_t* opt_o = NULL; @@ -483,7 +483,7 @@ int ps_main(int argc ATTRIBUTE_UNUSED, char **argv) int ps_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int ps_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) +int ps_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) { procps_status_t *p = NULL; 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); void BUG_bad_PRIO_USER(void); int renice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int renice_main(int argc ATTRIBUTE_UNUSED, char **argv) +int renice_main(int argc UNUSED_PARAM, char **argv) { static const char Xetpriority_msg[] ALIGN1 = "%cetpriority"; 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 { }; int sysctl_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int sysctl_main(int argc ATTRIBUTE_UNUSED, char **argv) +int sysctl_main(int argc UNUSED_PARAM, char **argv) { int retval; 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) } } -static void sig_catcher(int sig ATTRIBUTE_UNUSED) +static void sig_catcher(int sig UNUSED_PARAM) { reset_term(); exit(EXIT_FAILURE); @@ -739,7 +739,7 @@ enum { }; int top_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int top_main(int argc ATTRIBUTE_UNUSED, char **argv) +int top_main(int argc UNUSED_PARAM, char **argv) { int count; 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 @@ int uptime_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int uptime_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) +int uptime_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) { int updays, uphours, upminutes; 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 @@ // (procps 3.x and procps 2.x are forks, not newer/older versions of the same) int watch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int watch_main(int argc ATTRIBUTE_UNUSED, char **argv) +int watch_main(int argc UNUSED_PARAM, char **argv) { unsigned opt; unsigned period = 2; |