summaryrefslogtreecommitdiff
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2026-08-11 10:33:06 +0200
committerJunio C Hamano <gitster@pobox.com>2026-08-11 07:33:16 -0700
commit62c1a58eebe81708f9c2408918f76713285e62a0 (patch)
tree9ceab842e6bba4a0795d972fdda99e77a51dba52 /contrib/persistent-https
parent08b7e358e377ec2d7cd3cfe0679261b1ffffc8a7 (diff)
fast-import: localize 'i' into the 'for' loops using it
In cmd_fast_import(), a local variable 'i' is defined as an `unsigned int` and then used as a loop counter in four different `for (i = ...; i < ...; i++) { ... }` loops. But in three out of the four cases, `unsigned int` isn't the best type to use. To give each loop counter the type matching its bound (int/unsigned/size_t), let's localize 'i' into each loop that uses it. Signed-off-by: Christian Couder <christian.couder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions