mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
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 a new issue