From a60f84ebf07863e390b72a2b6150e461a1ec18e9 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 5 Jul 2008 09:18:54 +0000 Subject: *: rename ATTRIBUTE_XXX to just XXX. --- findutils/find.c | 10 +++++----- findutils/grep.c | 4 ++-- findutils/xargs.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'findutils') diff --git a/findutils/find.c b/findutils/find.c index 51d26c00a..f2b89746f 100644 --- a/findutils/find.c +++ b/findutils/find.c @@ -74,9 +74,9 @@ typedef struct { #endif } action; #define ACTS(name, arg...) typedef struct { action a; arg; } action_##name; -#define ACTF(name) static int func_##name(const char *fileName ATTRIBUTE_UNUSED, \ - struct stat *statbuf ATTRIBUTE_UNUSED, \ - action_##name* ap ATTRIBUTE_UNUSED) +#define ACTF(name) static int func_##name(const char *fileName UNUSED_PARAM, \ + struct stat *statbuf UNUSED_PARAM, \ + action_##name* ap UNUSED_PARAM) ACTS(print) ACTS(name, const char *pattern; bool iname;) USE_FEATURE_FIND_PATH( ACTS(path, const char *pattern;)) @@ -376,8 +376,8 @@ ACTF(context) static int FAST_FUNC fileAction(const char *fileName, struct stat *statbuf, - void *userData SKIP_FEATURE_FIND_MAXDEPTH(ATTRIBUTE_UNUSED), - int depth SKIP_FEATURE_FIND_MAXDEPTH(ATTRIBUTE_UNUSED)) + void *userData SKIP_FEATURE_FIND_MAXDEPTH(UNUSED_PARAM), + int depth SKIP_FEATURE_FIND_MAXDEPTH(UNUSED_PARAM)) { int i; #if ENABLE_FEATURE_FIND_MAXDEPTH diff --git a/findutils/grep.c b/findutils/grep.c index 8d18f43ec..5cfd7721f 100644 --- a/findutils/grep.c +++ b/findutils/grep.c @@ -371,9 +371,9 @@ static void load_regexes_from_file(llist_t *fopt) } static int FAST_FUNC file_action_grep(const char *filename, - struct stat *statbuf ATTRIBUTE_UNUSED, + struct stat *statbuf UNUSED_PARAM, void* matched, - int depth ATTRIBUTE_UNUSED) + int depth UNUSED_PARAM) { FILE *file = fopen(filename, "r"); if (file == NULL) { diff --git a/findutils/xargs.c b/findutils/xargs.c index 3322e9ebd..7a9865b5e 100644 --- a/findutils/xargs.c +++ b/findutils/xargs.c @@ -292,7 +292,7 @@ static int xargs_ask_confirmation(void) #if ENABLE_FEATURE_XARGS_SUPPORT_ZERO_TERM static xlist_t *process0_stdin(xlist_t *list_arg, - const char *eof_str ATTRIBUTE_UNUSED, size_t mc, char *buf) + const char *eof_str UNUSED_PARAM, size_t mc, char *buf) { int c; /* current char */ char *s = NULL; /* start word */ -- cgit v1.2.3