sha1-array.c: mark a private file-scope symbol as static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Sep 15, 2012 at 22:39 UTC
69850be47d1b629543a2c45e8dd254729c5676af
3 files changed
+1
-5
Documentation/technical/api-sha1-array.txt
-3
@@ -25,9 +25,6 @@ Functions
25
the array (but note that some operations below may lose this
26
ordering).
27
28
-`sha1_array_sort`::
29
- Sort the elements in the array.
30
-
28
`sha1_array_lookup`::
29
Perform a binary search of the array for a specific sha1.
30
If found, returns the offset (in number of elements) of the
sha1-array.c
+1
-1
@@ -14,7 +14,7 @@ static int void_hashcmp(const void *a, const void *b)
14
return hashcmp(a, b);
15
}
16
17
-void sha1_array_sort(struct sha1_array *array)
17
+static void sha1_array_sort(struct sha1_array *array)
18
{
19
qsort(array->sha1, array->nr, sizeof(*array->sha1), void_hashcmp);
20
array->sorted = 1;
sha1-array.h
-1
@@ -11,7 +11,6 @@ struct sha1_array {
11
#define SHA1_ARRAY_INIT { NULL, 0, 0, 0 }
12
13
void sha1_array_append(struct sha1_array *array, const unsigned char *sha1);
14
-void sha1_array_sort(struct sha1_array *array);
14
int sha1_array_lookup(struct sha1_array *array, const unsigned char *sha1);
15
void sha1_array_clear(struct sha1_array *array);
16