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 <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
9a22b4d907
commit
6983f4e3b2
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user