*: rename ATTRIBUTE_XXX to just XXX.

This commit is contained in:
Denis Vlasenko
2008-07-05 09:18:54 +00:00
parent f6efccc065
commit a60f84ebf0
228 changed files with 479 additions and 479 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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";

View File

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

View File

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

View File

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

View File

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