summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e06c5a6)
raw | patch | inline | side by side (parent: e06c5a6)
author | Nicolas Pitre <nico@cam.org> | |
Thu, 16 Aug 2007 02:46:01 +0000 (22:46 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 16 Aug 2007 04:39:07 +0000 (21:39 -0700) |
Not only are they unused, but the order in the function declaration
and the actual usage don't match.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
and the actual usage don't match.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c | patch | blob | history |
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index 51a850e1113f6d89cbd7730949a444b330231b1c..24926db27a7b18738a3ee473eb499bf133295873 100644 (file)
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
unsigned depth;
};
-static int delta_cacheable(struct unpacked *trg, struct unpacked *src,
- unsigned long src_size, unsigned long trg_size,
- unsigned long delta_size)
+static int delta_cacheable(unsigned long src_size, unsigned long trg_size,
+ unsigned long delta_size)
{
if (max_delta_cache_size && delta_cache_size + delta_size > max_delta_cache_size)
return 0;
trg_entry->delta_size = delta_size;
trg->depth = src->depth + 1;
- if (delta_cacheable(src, trg, src_size, trg_size, delta_size)) {
+ if (delta_cacheable(src_size, trg_size, delta_size)) {
trg_entry->delta_data = xrealloc(delta_buf, delta_size);
delta_cache_size += trg_entry->delta_size;
} else