X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=echo.c;h=31c0315289790aad1840a324e048d494302186be;hb=0a6859031493951de02cc00e18f0da2bd305fc05;hp=e9bc50a15281f7a4dc4e04e997021e36df4b4516;hpb=cbe31dace5fb24304694d399b9eb267fbe752516;p=oweals%2Fbusybox.git diff --git a/echo.c b/echo.c index e9bc50a15..31c031528 100644 --- a/echo.c +++ b/echo.c @@ -40,7 +40,7 @@ echo_main(int argc, char** argv) while (argc > 0 && *argv[0] == '-') { register char *temp; - register int index; + register int ix; /* * If it appears that we are handling options, then make sure @@ -49,9 +49,9 @@ echo_main(int argc, char** argv) */ temp = argv[0] + 1; - for (index = 0; temp[index]; index++) + for (ix = 0; temp[ix]; ix++) { - if (strrchr("neE", temp[index]) == 0) + if (strrchr("neE", temp[ix]) == 0) goto just_echo; } @@ -81,7 +81,7 @@ echo_main(int argc, char** argv) just_echo: while (argc > 0) { - char *arg = argv[0]; + const char *arg = argv[0]; register int c; while ((c = *arg++)) {