commit - 8f1c06eb7569f957aec944ee5130e28e0cf7c2bd
commit + 01bb5a15144ece7ca707994fb56e1847c76a1a92
blob - 0b62c26c8990e23ab00c91090588f0e298ef258e
blob + 005914093bf904b0e5687ccc411f6f975c1e2219
--- libexec/got-fetch-pack/got-fetch-pack.c
+++ libexec/got-fetch-pack/got-fetch-pack.c
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;
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 - 941487e40d25af2df9387e12a870e7c082e905c9
blob + 70a0245af23f51f482857d2560c04e849fdbfc26
--- libexec/got-read-pack/got-read-pack.c
+++ libexec/got-read-pack/got-read-pack.c
}
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;
{
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 - 91674461564887f691b79dc590d4f9199284f2df
blob + c5fac4aca09fb9fb30266856ac9bdf28c6708768
--- libexec/got-send-pack/got-send-pack.c
+++ libexec/got-send-pack/got-send-pack.c
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;
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)