summaryrefslogtreecommitdiff
path: root/pack-check.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-15 12:47:43 -0800
committerJunio C Hamano <junkio@cox.net>2006-02-15 13:03:27 -0800
commitf8f135c9bae74f846a92e1f1f1fea8308802ace5 (patch)
tree894e221bbf9916cffd2eee87417455f0291f5dd7 /pack-check.c
parent6becd7da8786555fbd2aeeb9669d37dc810f2658 (diff)
downloadgit-f8f135c9bae74f846a92e1f1f1fea8308802ace5.tar.gz
packed objects: minor cleanup
The delta depth is unsigned. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'pack-check.c')
-rw-r--r--pack-check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pack-check.c b/pack-check.c
index 67a7ecdf16..eca32b6cab 100644
--- a/pack-check.c
+++ b/pack-check.c
@@ -84,7 +84,7 @@ static void show_pack_info(struct packed_git *p)
char type[20];
unsigned long size;
unsigned long store_size;
- int delta_chain_length;
+ unsigned int delta_chain_length;
if (nth_packed_object_sha1(p, i, sha1))
die("internal error pack-check nth-packed-object");
@@ -98,7 +98,7 @@ static void show_pack_info(struct packed_git *p)
if (!delta_chain_length)
printf("%-6s %lu %u\n", type, size, e.offset);
else
- printf("%-6s %lu %u %d %s\n", type, size, e.offset,
+ printf("%-6s %lu %u %u %s\n", type, size, e.offset,
delta_chain_length, sha1_to_hex(base_sha1));
}