Fix compilation warnings in pack-redundant.c
This fixes compilation warnings where "%ld" was used to print values of type size_t. Signed-off-by: Kai Ruemmler <kai.ruemmler@gmx.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Kai Ruemmler committed
Nov 12, 2005 at 17:33 UTC
abacbe4166bcf9d62f430a4a75de2e82df3799b1
1 file changed
+8
-7
pack-redundant.c
+8
-7
@@ -593,19 +593,20 @@ int main(int argc, char **argv)
593
594
minimize(&min);
595
if (verbose) {
596
- fprintf(stderr, "There are %ld packs available in alt-odbs.\n",
597
- pack_list_size(altodb_packs));
596
+ fprintf(stderr, "There are %lu packs available in alt-odbs.\n",
597
+ (unsigned long)pack_list_size(altodb_packs));
598
fprintf(stderr, "The smallest (bytewise) set of packs is:\n");
599
pl = min;
600
while (pl) {
601
fprintf(stderr, "\t%s\n", pl->pack->pack_name);
602
pl = pl->next;
603
}
604
- fprintf(stderr, "containing %ld duplicate objects "
605
- "with a total size of %ldkb.\n",
606
- get_pack_redundancy(min), pack_set_bytecount(min)/1024);
607
- fprintf(stderr, "A total of %ld unique objects were considered.\n",
608
- all_objects->size);
604
+ fprintf(stderr, "containing %lu duplicate objects "
605
+ "with a total size of %lukb.\n",
606
+ (unsigned long)get_pack_redundancy(min),
607
+ (unsigned long)pack_set_bytecount(min)/1024);
608
+ fprintf(stderr, "A total of %lu unique objects were considered.\n",
609
+ (unsigned long)all_objects->size);
610
fprintf(stderr, "Redundant packs (with indexes):\n");
611
}
612
pl = red = pack_list_difference(local_packs, min);