X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=pack-check.c;h=a1a521648deee8e7e82c4e2cb7fe8fe03605dc06;hb=c565cb452c1e20babe4d0632c58e0f11a9af30c4;hp=395fb9527a3bc6dd8ca648233911a1c35604440d;hpb=567323d387dda559dbdba8c15453aba629393955;p=git.git diff --git a/pack-check.c b/pack-check.c index 395fb9527..a1a521648 100644 --- a/pack-check.c +++ b/pack-check.c @@ -2,8 +2,7 @@ #include "pack.h" #include "pack-revindex.h" -struct idx_entry -{ +struct idx_entry { off_t offset; const unsigned char *sha1; unsigned int nr; @@ -24,7 +23,7 @@ int check_pack_crc(struct packed_git *p, struct pack_window **w_curs, off_t offset, off_t len, unsigned int nr) { const uint32_t *index_crc; - uint32_t data_crc = crc32(0, Z_NULL, 0); + uint32_t data_crc = crc32(0, NULL, 0); do { unsigned int avail; @@ -77,7 +76,7 @@ static int verify_packfile(struct packed_git *p, err = error("%s SHA1 checksum mismatch", p->pack_name); if (hashcmp(index_base + index_size - 40, pack_sig)) - err = error("%s SHA1 does not match its inddex", + err = error("%s SHA1 does not match its index", p->pack_name); unuse_pack(w_curs);