summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2b6e34c)
raw | patch | inline | side by side (parent: 2b6e34c)
author | Alex Riesen <raa.lkml@gmail.com> | |
Tue, 22 Nov 2005 14:59:22 +0000 (15:59 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 22 Nov 2005 20:38:25 +0000 (12:38 -0800) |
Signed-off-by: Alex Riesen <ariesen@harmanbecker.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
pack-redundant.c | patch | blob | history |
diff --git a/pack-redundant.c b/pack-redundant.c
index 59375f1b9781b81c8567dd281a3d9385c3bf09a7..b38baa94759cd3f629259b82c15922224a78656a 100644 (file)
--- a/pack-redundant.c
+++ b/pack-redundant.c
@@ -149,8 +149,9 @@ static inline struct llist_item * llist_insert_sorted_unique(struct llist *list,
}
/* returns a pointer to an item in front of sha1 */
-static inline struct llist_item * llist_sorted_remove(struct llist *list, char *sha1,
- struct llist_item *hint)
+static inline struct llist_item * llist_sorted_remove(struct llist *list,
+ const char *sha1,
+ struct llist_item *hint)
{
struct llist_item *prev, *l;
return ret;
}
-static struct pack_list * pack_list_difference(struct pack_list *A,
- struct pack_list *B)
+static struct pack_list * pack_list_difference(const struct pack_list *A,
+ const struct pack_list *B)
{
- struct pack_list *ret, *pl;
+ struct pack_list *ret;
+ const struct pack_list *pl;
if (A == NULL)
return NULL;
diff = llist_copy(list);
while (pl) {
- llist_sorted_difference_inplace(diff,
- pl->all_objects);
+ llist_sorted_difference_inplace(diff, pl->all_objects);
if (diff->size == 0) { /* we're done */
llist_free(diff);
return 1;