Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sha1-array.c: mark a private file-scope symbol as static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Sep 16, 2012
1 parent 72f3196 commit 69850be
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions Documentation/technical/api-sha1-array.txt
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sha1-array.c
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion sha1-array.h
Expand Up @@ -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);

Expand Down

0 comments on commit 69850be

Please sign in to comment.