aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-07-05 09:18:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-07-05 09:18:54 +0000
commita60f84ebf07863e390b72a2b6150e461a1ec18e9 (patch)
treef59bc665cfe3d2d32622450d80523e3c1265e501 /findutils
parentf6efccc0659a2e2978f2021153f34ce92257ad2b (diff)
downloadbusybox-a60f84ebf07863e390b72a2b6150e461a1ec18e9.tar.gz
*: rename ATTRIBUTE_XXX to just XXX.
Diffstat (limited to 'findutils')
-rw-r--r--findutils/find.c10
-rw-r--r--findutils/grep.c4
-rw-r--r--findutils/xargs.c2
3 files changed, 8 insertions, 8 deletions
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 */