Commit 219877e
cat-file: add declaration of variable i inside its for loop
Some code used in this series declares variable i and only uses it
in a for loop, not in any other logic outside the loop.
Change the declaration of i to be inside the for loop for readability.
While at it, we also change its type from "int" to "size_t" where the latter makes more sense.
Helped-by: Christian Couder <[email protected]>
Signed-off-by: Eric Ju <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 4e26096 commit 219877e
2 files changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
680 | | - | |
681 | 679 | | |
682 | 680 | | |
683 | 681 | | |
684 | | - | |
| 682 | + | |
685 | 683 | | |
686 | 684 | | |
687 | 685 | | |
688 | 686 | | |
689 | 687 | | |
690 | 688 | | |
691 | 689 | | |
692 | | - | |
693 | | - | |
694 | | - | |
| 690 | + | |
695 | 691 | | |
696 | 692 | | |
697 | 693 | | |
| |||
717 | 713 | | |
718 | 714 | | |
719 | 715 | | |
720 | | - | |
721 | 716 | | |
722 | 717 | | |
723 | 718 | | |
| |||
727 | 722 | | |
728 | 723 | | |
729 | 724 | | |
730 | | - | |
| 725 | + | |
731 | 726 | | |
732 | 727 | | |
733 | 728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1331 | 1331 | | |
1332 | 1332 | | |
1333 | 1333 | | |
1334 | | - | |
1335 | 1334 | | |
1336 | | - | |
| 1335 | + | |
1337 | 1336 | | |
1338 | 1337 | | |
1339 | 1338 | | |
| |||
0 commit comments