diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2005-11-22 15:59:22 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-22 12:38:25 -0800 |
commit | d1ab157759f0738a13bfb04bca8c436814913d4b (patch) | |
tree | 3e37fac3588c3b431ece842c7e4618cb0ce4ea64 /pack-redundant.c | |
parent | 2b6e34c1a3c5d787f478c32a359cfe50cb8114b8 (diff) | |
download | git-d1ab157759f0738a13bfb04bca8c436814913d4b.tar.gz git-d1ab157759f0738a13bfb04bca8c436814913d4b.tar.xz |
arguments cleanup and some formatting
Signed-off-by: Alex Riesen <ariesen@harmanbecker.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'pack-redundant.c')
-rw-r--r-- | pack-redundant.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pack-redundant.c b/pack-redundant.c index 59375f1b9..b38baa947 100644 --- 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; @@ -218,10 +219,11 @@ static inline size_t pack_list_size(struct pack_list *pl) 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; @@ -350,8 +352,7 @@ static int is_superset(struct pack_list *pl, struct llist *list) 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; |