X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=pack-check.c;h=d04536bbff7cba22ca67521d45e690dfa5aa8675;hb=1654a3ba0c3a91ee3c0f38c922e3d2d1255ec868;hp=f58083d11e0cfb974861d340bdea4ae18d2469e8;hpb=2de00bf9e8815970c61cefaef35efeacd8a7d6de;p=git.git diff --git a/pack-check.c b/pack-check.c index f58083d11..d04536bbf 100644 --- a/pack-check.c +++ b/pack-check.c @@ -40,7 +40,7 @@ static int verify_packfile(struct packed_git *p, * have verified that nr_objects matches between idx and pack, * we do not do scan-streaming check on the pack file. */ - nr_objects = num_packed_objects(p); + nr_objects = p->num_objects; for (i = 0, err = 0; i < nr_objects; i++) { const unsigned char *sha1; void *data; @@ -79,7 +79,7 @@ static void show_pack_info(struct packed_git *p) { uint32_t nr_objects, i, chain_histogram[MAX_CHAIN]; - nr_objects = num_packed_objects(p); + nr_objects = p->num_objects; memset(chain_histogram, 0, sizeof(chain_histogram)); for (i = 0; i < nr_objects; i++) {