]> git.99rst.org Git - git.git/commitdiff
test-parse-options.c: don't use for loop initial declaration
authorSZEDER Gábor <redacted>
Mon, 5 Sep 2022 18:50:04 +0000 (20:50 +0200)
committerJunio C Hamano <redacted>
Wed, 7 Sep 2022 19:06:12 +0000 (12:06 -0700)
We would like to eventually use for loop initial declarations in our
codebase, but we are not there yet.

Signed-off-by: SZEDER Gábor <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/helper/test-parse-options.c

index aa0ad45851ab1be9362443a325074636a18b1f94..9fe8ce66cb0ec19ce2d4b9b7a2a75bf6184a92d8 100644 (file)
@@ -195,7 +195,8 @@ int cmd__parse_options(int argc, const char **argv)
 
 static void print_args(int argc, const char **argv)
 {
-       for (int i = 0; i < argc; i++)
+       int i;
+       for (i = 0; i < argc; i++)
                printf("arg %02d: %s\n", i, argv[i]);
 }
 
git clone https://git.99rst.org/PROJECT