diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-06-25 10:10:16 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-06-25 10:10:16 +0200 |
commit | 7f775c0329bbfc5788d23bbd6f554fbcfbc2b5c0 (patch) | |
tree | 6713458df83f9333679daf298c417d50852cce73 /test/unistd | |
parent | 005050625f006b5e0938b726cfa1d6984c1b2c3f (diff) |
test: silence shadow warning
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'test/unistd')
-rw-r--r-- | 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 97ae2ef25..1c1263e67 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; |