diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-21 07:34:27 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-21 07:34:27 +0000 |
commit | 181385da6b3577bb300bcda2653623ae46928ad4 (patch) | |
tree | d1f07be4de0004fe5e30b44320e10285147e7944 /coreutils/echo.c | |
parent | 0ccb1013f6746540ee25e7f070982d043e3ca949 (diff) | |
download | busybox-w32-181385da6b3577bb300bcda2653623ae46928ad4.tar.gz busybox-w32-181385da6b3577bb300bcda2653623ae46928ad4.tar.bz2 busybox-w32-181385da6b3577bb300bcda2653623ae46928ad4.zip |
A nice patch from Larry Doolittle that adds -Wshadow and
cleans up most of the now-revealed problems.
git-svn-id: svn://busybox.net/trunk/busybox@2177 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/echo.c')
-rw-r--r-- | coreutils/echo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/echo.c b/coreutils/echo.c index e9bc50a15..1ca373467 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c | |||
@@ -40,7 +40,7 @@ echo_main(int argc, char** argv) | |||
40 | while (argc > 0 && *argv[0] == '-') | 40 | while (argc > 0 && *argv[0] == '-') |
41 | { | 41 | { |
42 | register char *temp; | 42 | register char *temp; |
43 | register int index; | 43 | register int ix; |
44 | 44 | ||
45 | /* | 45 | /* |
46 | * If it appears that we are handling options, then make sure | 46 | * If it appears that we are handling options, then make sure |
@@ -49,9 +49,9 @@ echo_main(int argc, char** argv) | |||
49 | */ | 49 | */ |
50 | temp = argv[0] + 1; | 50 | temp = argv[0] + 1; |
51 | 51 | ||
52 | for (index = 0; temp[index]; index++) | 52 | for (ix = 0; temp[ix]; ix++) |
53 | { | 53 | { |
54 | if (strrchr("neE", temp[index]) == 0) | 54 | if (strrchr("neE", temp[ix]) == 0) |
55 | goto just_echo; | 55 | goto just_echo; |
56 | } | 56 | } |
57 | 57 | ||