]> Pileus Git - ~andy/git/commitdiff
sha1-array.c: mark a private file-scope symbol as static
authorJunio C Hamano <gitster@pobox.com>
Sun, 16 Sep 2012 05:39:43 +0000 (22:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 16 Sep 2012 05:58:21 +0000 (22:58 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-sha1-array.txt
sha1-array.c
sha1-array.h

index 4a4bae81093d7a985625d42effd92db9a957ba78..45d1c517cd862878198db6023d5fdbd35f9fbb6c 100644 (file)
@@ -25,9 +25,6 @@ Functions
        the array (but note that some operations below may lose this
        ordering).
 
-`sha1_array_sort`::
-       Sort the elements in the array.
-
 `sha1_array_lookup`::
        Perform a binary search of the array for a specific sha1.
        If found, returns the offset (in number of elements) of the
index b2f47f98fbba26ff7cab4c8651f4c4097e933f84..6f4a2246c9a912d06cf1a6995e07bf2008ec749d 100644 (file)
@@ -14,7 +14,7 @@ static int void_hashcmp(const void *a, const void *b)
        return hashcmp(a, b);
 }
 
-void sha1_array_sort(struct sha1_array *array)
+static void sha1_array_sort(struct sha1_array *array)
 {
        qsort(array->sha1, array->nr, sizeof(*array->sha1), void_hashcmp);
        array->sorted = 1;
index 4499b5dad40924e9be2b6aacd73153326e6d11ec..72bb33bec6c173633c2b5cd04db57b562fa23a9e 100644 (file)
@@ -11,7 +11,6 @@ struct sha1_array {
 #define SHA1_ARRAY_INIT { NULL, 0, 0, 0 }
 
 void sha1_array_append(struct sha1_array *array, const unsigned char *sha1);
-void sha1_array_sort(struct sha1_array *array);
 int sha1_array_lookup(struct sha1_array *array, const unsigned char *sha1);
 void sha1_array_clear(struct sha1_array *array);