summaryrefslogtreecommitdiff
path: root/pack-redundant.c
diff options
context:
space:
mode:
authorKai Ruemmler <kai.ruemmler@gmx.net>2005-11-12 17:33:24 +0100
committerJunio C Hamano <junkio@cox.net>2005-11-13 02:00:36 -0800
commitabacbe4166bcf9d62f430a4a75de2e82df3799b1 (patch)
tree1418e417608f442ebfb3e0698c159107ca1f188b /pack-redundant.c
parentac0b86dadf243305810199096f0b35acd518abc1 (diff)
downloadgit-abacbe4166bcf9d62f430a4a75de2e82df3799b1.tar.gz
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>
Diffstat (limited to 'pack-redundant.c')
-rw-r--r--pack-redundant.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/pack-redundant.c b/pack-redundant.c
index 1f8c577391..28b82ee65a 100644
--- a/pack-redundant.c
+++ b/pack-redundant.c
@@ -593,19 +593,20 @@ int main(int argc, char **argv)
minimize(&min);
if (verbose) {
- fprintf(stderr, "There are %ld packs available in alt-odbs.\n",
- pack_list_size(altodb_packs));
+ fprintf(stderr, "There are %lu packs available in alt-odbs.\n",
+ (unsigned long)pack_list_size(altodb_packs));
fprintf(stderr, "The smallest (bytewise) set of packs is:\n");
pl = min;
while (pl) {
fprintf(stderr, "\t%s\n", pl->pack->pack_name);
pl = pl->next;
}
- fprintf(stderr, "containing %ld duplicate objects "
- "with a total size of %ldkb.\n",
- get_pack_redundancy(min), pack_set_bytecount(min)/1024);
- fprintf(stderr, "A total of %ld unique objects were considered.\n",
- all_objects->size);
+ fprintf(stderr, "containing %lu duplicate objects "
+ "with a total size of %lukb.\n",
+ (unsigned long)get_pack_redundancy(min),
+ (unsigned long)pack_set_bytecount(min)/1024);
+ fprintf(stderr, "A total of %lu unique objects were considered.\n",
+ (unsigned long)all_objects->size);
fprintf(stderr, "Redundant packs (with indexes):\n");
}
pl = red = pack_list_difference(local_packs, min);