diff options
author | Denis Vlasenko | 2007-01-27 13:45:17 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-01-27 13:45:17 +0000 |
commit | 434ad5456b0468e469c9da140871121f87a1377b (patch) | |
tree | c7ee764e3171e0fae54712f63cb541f3c94c59d2 /findutils | |
parent | e0eebc1ef3816bd75988021376a368dfe19470c5 (diff) | |
download | busybox-434ad5456b0468e469c9da140871121f87a1377b.zip busybox-434ad5456b0468e469c9da140871121f87a1377b.tar.gz |
fix warning in find.c
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/find.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/findutils/find.c b/findutils/find.c index f7d9532..42cee87 100644 --- a/findutils/find.c +++ b/findutils/find.c @@ -59,7 +59,7 @@ typedef struct { #define ACTS(name, arg...) typedef struct { action a; arg; } action_##name; #define ACTF(name) static int func_##name(const char *fileName, struct stat *statbuf, action_##name* ap) ACTS(print) - ACTS(name, char *pattern;) + ACTS(name, const char *pattern;) USE_FEATURE_FIND_PRINT0(ACTS(print0)) USE_FEATURE_FIND_TYPE( ACTS(type, int type_mask;)) USE_FEATURE_FIND_PERM( ACTS(perm, char perm_char; mode_t perm_mask;)) @@ -273,7 +273,7 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* junk, in #if ENABLE_FEATURE_FIND_TYPE -static int find_type(char *type) +static int find_type(const char *type) { int mask = 0; @@ -349,8 +349,8 @@ static action*** parse_params(char **argv) // We implement: (), -a, -o while (*argv) { - char *arg = argv[0]; - char *arg1 = argv[1]; + const char *arg = argv[0]; + const char *arg1 = argv[1]; /* --- Operators --- */ if (strcmp(arg, "-a") == 0 USE_DESKTOP(|| strcmp(arg, "-and") == 0) |