]> git.ipfire.org Git - thirdparty/git.git/commit
connect: address -Wsign-compare warnings
authorMike Hommey <mh@glandium.org>
Fri, 17 Jan 2025 07:49:09 +0000 (16:49 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Jan 2025 17:27:42 +0000 (09:27 -0800)
commit49b299215dd779b781c5a39af85a5acb6294acbd
tree4534c212d007dc45198297bb4747529fa28c9244
parentfbe8d3079d4a96aeb4e4529cc93cc0043b759a05
connect: address -Wsign-compare warnings

Most of the warnings were about loop variables being declared as ints
with a condition using a size_t, whereby switching the variable to
size_t fixes the warning.

One other case was comparing the result of strlen to an int passed
as an argument, which turns out could just as well be passed as a
size_t, albeit trickling to other functions.

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c