summaryrefslogtreecommitdiff
path: root/findutils/find.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-29 22:51:58 +0000
committerDenis Vlasenko2007-01-29 22:51:58 +0000
commitab2aea44479fd6f519bccd651a37f30e792b7593 (patch)
tree443636e12ffb52db95168013bbda80f78ed49fe6 /findutils/find.c
parent06c0a71d2315756db874e98bc4f760ca3283b6a6 (diff)
downloadbusybox-ab2aea44479fd6f519bccd651a37f30e792b7593.zip
busybox-ab2aea44479fd6f519bccd651a37f30e792b7593.tar.gz
preparatory patch for -Wwrite-strings #4
Diffstat (limited to 'findutils/find.c')
-rw-r--r--findutils/find.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/findutils/find.c b/findutils/find.c
index 42cee87..0c22ee6 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -497,7 +497,7 @@ static action*** parse_params(char **argv)
}
ap = ALLOC_ACTION(paren);
ap->subexpr = parse_params(argv + 1);
- *endarg = ")"; /* restore NULLed parameter */
+ *endarg = (char*) ")"; /* restore NULLed parameter */
argv = endarg;
}
else if (strcmp(arg, "-prune") == 0) {
@@ -537,7 +537,7 @@ int find_main(int argc, char **argv)
#endif
}
if (firstopt == 1) {
- argv[0] = ".";
+ argv[0] = (char*)".";
argv--;
firstopt++;
}
@@ -553,7 +553,7 @@ int find_main(int argc, char **argv)
while ((arg = argp[0])) {
if (strcmp(arg, "-follow") == 0) {
dereference = TRUE;
- argp[0] = "-a";
+ argp[0] = (char*)"-a";
}
#if ENABLE_FEATURE_FIND_XDEV
else if (strcmp(arg, "-xdev") == 0) {
@@ -569,7 +569,7 @@ int find_main(int argc, char **argv)
xdev_dev[i-1] = stbuf.st_dev;
}
}
- argp[0] = "-a";
+ argp[0] = (char*)"-a";
}
#endif
argp++;