X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=echo.c;h=31c0315289790aad1840a324e048d494302186be;hb=4391a16c92cef744fc715cb7347b7b71fc8f312e;hp=b3e01afec8e90f99d0f8c268fa500b794465be2c;hpb=ed3ef50c233ffb1b50ea0e7382a8e60b86491009;p=oweals%2Fbusybox.git diff --git a/echo.c b/echo.c index b3e01afec..31c031528 100644 --- a/echo.c +++ b/echo.c @@ -22,10 +22,10 @@ * Original copyright notice is retained at the end of this file. */ -#include "busybox.h" #include #include #include +#include "busybox.h" extern int echo_main(int argc, char** argv) @@ -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++)) {