aboutsummaryrefslogtreecommitdiff
path: root/findutils/find.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 22:51:58 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 22:51:58 +0000
commitab2aea44479fd6f519bccd651a37f30e792b7593 (patch)
tree443636e12ffb52db95168013bbda80f78ed49fe6 /findutils/find.c
parent06c0a71d2315756db874e98bc4f760ca3283b6a6 (diff)
downloadbusybox-w32-ab2aea44479fd6f519bccd651a37f30e792b7593.tar.gz
busybox-w32-ab2aea44479fd6f519bccd651a37f30e792b7593.tar.bz2
busybox-w32-ab2aea44479fd6f519bccd651a37f30e792b7593.zip
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 42cee87e1..0c22ee6d1 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -497,7 +497,7 @@ static action*** parse_params(char **argv)
497 } 497 }
498 ap = ALLOC_ACTION(paren); 498 ap = ALLOC_ACTION(paren);
499 ap->subexpr = parse_params(argv + 1); 499 ap->subexpr = parse_params(argv + 1);
500 *endarg = ")"; /* restore NULLed parameter */ 500 *endarg = (char*) ")"; /* restore NULLed parameter */
501 argv = endarg; 501 argv = endarg;
502 } 502 }
503 else if (strcmp(arg, "-prune") == 0) { 503 else if (strcmp(arg, "-prune") == 0) {
@@ -537,7 +537,7 @@ int find_main(int argc, char **argv)
537#endif 537#endif
538 } 538 }
539 if (firstopt == 1) { 539 if (firstopt == 1) {
540 argv[0] = "."; 540 argv[0] = (char*)".";
541 argv--; 541 argv--;
542 firstopt++; 542 firstopt++;
543 } 543 }
@@ -553,7 +553,7 @@ int find_main(int argc, char **argv)
553 while ((arg = argp[0])) { 553 while ((arg = argp[0])) {
554 if (strcmp(arg, "-follow") == 0) { 554 if (strcmp(arg, "-follow") == 0) {
555 dereference = TRUE; 555 dereference = TRUE;
556 argp[0] = "-a"; 556 argp[0] = (char*)"-a";
557 } 557 }
558#if ENABLE_FEATURE_FIND_XDEV 558#if ENABLE_FEATURE_FIND_XDEV
559 else if (strcmp(arg, "-xdev") == 0) { 559 else if (strcmp(arg, "-xdev") == 0) {
@@ -569,7 +569,7 @@ int find_main(int argc, char **argv)
569 xdev_dev[i-1] = stbuf.st_dev; 569 xdev_dev[i-1] = stbuf.st_dev;
570 } 570 }
571 } 571 }
572 argp[0] = "-a"; 572 argp[0] = (char*)"-a";
573 } 573 }
574#endif 574#endif
575 argp++; 575 argp++;