Skip to content

Commit 482d174

Browse files
committed
transports: smart: do not redeclare loop counters
1 parent 6cf575b commit 482d174

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/transports/smart_protocol.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,12 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c
412412

413413
if (i % 20 == 0 && t->rpc) {
414414
git_pkt_ack *pkt;
415-
unsigned int i;
415+
unsigned int j;
416416

417417
if ((error = git_pkt_buffer_wants(wants, count, &t->caps, &data)) < 0)
418418
goto on_error;
419419

420-
git_vector_foreach(&t->common, i, pkt) {
420+
git_vector_foreach(&t->common, j, pkt) {
421421
if ((error = git_pkt_buffer_have(&pkt->oid, &data)) < 0)
422422
goto on_error;
423423
}
@@ -432,12 +432,12 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c
432432
/* Tell the other end that we're done negotiating */
433433
if (t->rpc && t->common.length > 0) {
434434
git_pkt_ack *pkt;
435-
unsigned int i;
435+
unsigned int j;
436436

437437
if ((error = git_pkt_buffer_wants(wants, count, &t->caps, &data)) < 0)
438438
goto on_error;
439439

440-
git_vector_foreach(&t->common, i, pkt) {
440+
git_vector_foreach(&t->common, j, pkt) {
441441
if ((error = git_pkt_buffer_have(&pkt->oid, &data)) < 0)
442442
goto on_error;
443443
}

0 commit comments

Comments
 (0)