X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=pack-objects.c;h=136a7f5aad61e8a90866ee7d0b4bc22e387f0396;hb=8273c79ae2e6b782dba3dccb815b386cc83e4294;hp=0287449b4ce365eaa134815d34522fdf8495dbe7;hpb=8fcf1ad9c68e15d881194c8544e7c11d33529c2b;p=git.git diff --git a/pack-objects.c b/pack-objects.c index 0287449b..136a7f5a 100644 --- a/pack-objects.c +++ b/pack-objects.c @@ -99,7 +99,7 @@ static int reused_delta = 0; static int pack_revindex_ix(struct packed_git *p) { - unsigned long ui = (unsigned long)(long)p; + unsigned long ui = (unsigned long)p; int i; ui = ui ^ (ui >> 16); /* defeat structure alignment */ @@ -768,7 +768,7 @@ static int sha1_sort(const struct object_entry *a, const struct object_entry *b) return memcmp(a->sha1, b->sha1, 20); } -static struct object_entry **create_final_object_list() +static struct object_entry **create_final_object_list(void) { struct object_entry **list; int i, j;