commit 030daac821622c8495676bc5210fb7784c7ae78f from: Stefan Sperling date: Sat Sep 25 10:26:13 2021 UTC fix some integers that had a slightly wrong type; patch by Omar Polo commit - 50127d69d134221cbcaa9ca3e173dceac051952c commit + 030daac821622c8495676bc5210fb7784c7ae78f blob - 15451b4e3f2c64f4522ab8457cb5e6151ed1e1f4 blob + 96308310d28fd9186f083ce3c0028cceb9cd61b5 --- libexec/got-fetch-pack/got-fetch-pack.c +++ libexec/got-fetch-pack/got-fetch-pack.c @@ -779,7 +779,7 @@ int main(int argc, char **argv) { const struct got_error *err = NULL; - int fetchfd, packfd = -1, i; + int fetchfd, packfd = -1; uint8_t pack_sha1[SHA1_DIGEST_LENGTH]; struct imsgbuf ibuf; struct imsg imsg; @@ -791,7 +791,7 @@ main(int argc, char **argv) struct got_imsg_fetch_have_ref href; struct got_imsg_fetch_wanted_branch wbranch; struct got_imsg_fetch_wanted_ref wref; - size_t datalen; + size_t datalen, i; #if 0 static int attached; while (!attached) blob - d6d774eb4f68ccae8f9320dd8cd3f8c7835c591d blob + dc3aeafa7658e8859b4c4d595ca4d6ad52a6c875 --- libexec/got-read-pack/got-read-pack.c +++ libexec/got-read-pack/got-read-pack.c @@ -252,7 +252,7 @@ tree_request(struct imsg *imsg, struct imsgbuf *ibuf, } static const struct got_error * -receive_file(FILE **f, struct imsgbuf *ibuf, int imsg_code) +receive_file(FILE **f, struct imsgbuf *ibuf, uint32_t imsg_code) { const struct got_error *err; struct imsg imsg; @@ -540,7 +540,7 @@ send_traversed_commits(struct got_object_id *commit_id { const struct got_error *err; struct ibuf *wbuf; - int i; + size_t i; wbuf = imsg_create(ibuf, GOT_IMSG_TRAVERSED_COMMITS, 0, 0, sizeof(struct got_imsg_traversed_commits) + blob - 366a7752b050575027ad23ce7530ed0f5655788d blob + 7869acc4eabb34a0fcd9a18863a04b3560d8bbc9 --- libexec/got-send-pack/got-send-pack.c +++ libexec/got-send-pack/got-send-pack.c @@ -575,7 +575,7 @@ int main(int argc, char **argv) { const struct got_error *err = NULL; - int sendfd, i; + int sendfd; struct imsgbuf ibuf; struct imsg imsg; struct got_pathlist_head refs; @@ -583,7 +583,7 @@ main(int argc, char **argv) struct got_pathlist_entry *pe; struct got_imsg_send_request send_req; struct got_imsg_send_ref href; - size_t datalen; + size_t datalen, i; #if 0 static int attached; while (!attached)