Rewrote mkdir (and touched lots of things in the process).
[oweals/busybox.git] / coreutils / echo.c
index b3e01afec8e90f99d0f8c268fa500b794465be2c..31c0315289790aad1840a324e048d494302186be 100644 (file)
  * Original copyright notice is retained at the end of this file.
  */
 
-#include "busybox.h"
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#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++)) {