Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
use QSORT
[gitweb.git]
/
sha1-array.c
diff --git
a/sha1-array.c
b/sha1-array.c
index 6f4a2246c9a912d06cf1a6995e07bf2008ec749d..21188deb7a4c44b279ae9ca2b67a0a785f2950ef 100644
(file)
--- a/
sha1-array.c
+++ b/
sha1-array.c
@@
-16,7
+16,7
@@
static int void_hashcmp(const void *a, const void *b)
static void sha1_array_sort(struct sha1_array *array)
{
-
qsort(array->sha1, array->nr, sizeof(*array->sha1)
, void_hashcmp);
+
QSORT(array->sha1, array->nr
, void_hashcmp);
array->sorted = 1;
}