Skip to content

Commit 6983f4e

Browse files
szedergitster
authored andcommitted
test-parse-options.c: don't use for loop initial declaration
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9a22b4d commit 6983f4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/helper/test-parse-options.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ int cmd__parse_options(int argc, const char **argv)
195195

196196
static void print_args(int argc, const char **argv)
197197
{
198-
for (int i = 0; i < argc; i++)
198+
int i;
199+
for (i = 0; i < argc; i++)
199200
printf("arg %02d: %s\n", i, argv[i]);
200201
}
201202

0 commit comments

Comments
 (0)