git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] arguments cleanup and some formatting

From
Alex Riesen <raa.lkml@gmail.com>
Date
Nov 22, 2005, 14:59 UTC
Message-ID
<81b0412b0511220659u2d647b8aw5030ab7654dd8807@mail.gmail.com>
Subject: [PATCH] arguments cleanup and some formatting
Signed-off-by: Alex Riesen <ariesen@harmanbecker.com>
---
 pack-redundant.c |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

applies-to: 50ace31f398f055b2d9b25dbc86c85ddf15beadc 571f5a3ff794ff1afba5b9b708116c307b0f6aa7

diff --git a/pack-redundant.c b/pack-redundant.c
index 8b37da9..82bc8ad 100644
--- a/pack-redundant.c
+++ b/pack-redundant.c
@@ -149,8 +149,9 @@ static inline struct llist_item * llist_
 }
 
 /* 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(stru
 	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 
 	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;
---
0.99.9.GIT
Message 1 of 1 in “arguments cleanup and some formatting”
  1. arguments cleanup and some formattingAlex Riesen, Nov 22, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.