[git commit master 1/1] test: silence shadow warning

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Jun 25 08:12:58 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=7f775c0329bbfc5788d23bbd6f554fbcfbc2b5c0
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 test/unistd/tstgetopt.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/unistd/tstgetopt.c b/test/unistd/tstgetopt.c
index 97ae2ef..1c1263e 100644
--- a/test/unistd/tstgetopt.c
+++ b/test/unistd/tstgetopt.c
@@ -21,7 +21,7 @@ main (int argc, char **argv)
   char *cvalue = NULL;
   int Cflag = 0;
   int nflag = 0;
-  int index;
+  int idx;
   int c;
   int result = 0;
 
@@ -67,8 +67,8 @@ main (int argc, char **argv)
   result |= (aflag != 1 || bflag != 1 || cvalue == NULL
 	     || strcmp (cvalue, "foobar") != 0 || Cflag != 3 || nflag != 1);
 
-  for (index = optind; index < argc; index++)
-    printf ("Non-option argument %s\n", argv[index]);
+  for (idx = optind; idx < argc; idx++)
+    printf ("Non-option argument %s\n", argv[idx]);
 
   result |= optind + 1 != argc || strcmp (argv[optind], "random") != 0;
 
-- 
1.7.1



More information about the uClibc-cvs mailing list