diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2022-09-05 20:50:04 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-09-07 12:06:12 -0700 |
commit | 6983f4e3b205a48cfcb76e14a8b275f9eb72936d (patch) | |
tree | 87ce9e7b855442ebc5c62a3351a351b482457fac /t/helper/test-parse-options.c | |
parent | 9a22b4d907ebca52352997fe0e69714db247bb4c (diff) | |
download | git-6983f4e3b205a48cfcb76e14a8b275f9eb72936d.tar.gz |
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>
Diffstat (limited to 't/helper/test-parse-options.c')
-rw-r--r-- | t/helper/test-parse-options.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/helper/test-parse-options.c b/t/helper/test-parse-options.c index aa0ad45851..9fe8ce66cb 100644 --- a/t/helper/test-parse-options.c +++ b/t/helper/test-parse-options.c @@ -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]); } |