summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2001-11-12 03:10:42 +0000
committerDavid Schleef <ds@schleef.org>2001-11-12 03:10:42 +0000
commit219680fbe34686c2b418da326b4ca6d00a048a64 (patch)
tree414d779269fa6e661c701da0c0c8a127c33fbef9
parent2dd9aa80bc85c37d34dcd778406323d34fcf38c8 (diff)
Fix common C ambiguity.
-rw-r--r--test/args/arg_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/args/arg_test.c b/test/args/arg_test.c
index b23e17610..c32b7b3b2 100644
--- a/test/args/arg_test.c
+++ b/test/args/arg_test.c
@@ -31,8 +31,8 @@ int main( int argc, char **argv)
fprintf(stderr, "argc=%d\n", argc);
- while(i<argc) {
- fprintf(stderr, "argv[%d]='%s'\n", i, argv[i++]);
+ for(i=0;i<argc;i++){
+ fprintf(stderr, "argv[%d]='%s'\n", i, argv[i]);
}
i=0;