git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] make sha1_sort inline
@ 2006-08-18  5:30 David Rientjes
  2006-08-18  5:43 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: David Rientjes @ 2006-08-18  5:30 UTC (permalink / raw)
  To: git

Inlines sha1_sort as discussed in previous thread.

Signed-off-by: David Rientjes <rientjes@google.com>
---
 builtin-pack-objects.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index f19f0d6..b7ba558 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -929,7 +929,8 @@ static struct object_entry **create_sort
 	return list;
 }
 
-static int sha1_sort(const struct object_entry *a, const struct object_entry *b)
+static inline int sha1_sort(const struct object_entry *a,
+			    const struct object_entry *b)
 {
 	return hashcmp(a->sha1, b->sha1);
 }
-- 
1.4.2.rc4.gd070-dirty

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-18 16:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-18  5:30 [PATCH] make sha1_sort inline David Rientjes
2006-08-18  5:43 ` Junio C Hamano
2006-08-18 16:56   ` David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).