From 1ca20a77476fb69e2472080ef6ba23c8c0ad12ad Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 21 Mar 2001 07:34:27 +0000 Subject: A nice patch from Larry Doolittle that adds -Wshadow and cleans up most of the now-revealed problems. --- echo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'echo.c') diff --git a/echo.c b/echo.c index e9bc50a15..1ca373467 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; } -- cgit v1.2.3