Skip to content

Commit 69850be

Browse files
committed
sha1-array.c: mark a private file-scope symbol as static
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 72f3196 commit 69850be

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

Documentation/technical/api-sha1-array.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ Functions
2525
the array (but note that some operations below may lose this
2626
ordering).
2727

28-
`sha1_array_sort`::
29-
Sort the elements in the array.
30-
3128
`sha1_array_lookup`::
3229
Perform a binary search of the array for a specific sha1.
3330
If found, returns the offset (in number of elements) of the

sha1-array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ static int void_hashcmp(const void *a, const void *b)
1414
return hashcmp(a, b);
1515
}
1616

17-
void sha1_array_sort(struct sha1_array *array)
17+
static void sha1_array_sort(struct sha1_array *array)
1818
{
1919
qsort(array->sha1, array->nr, sizeof(*array->sha1), void_hashcmp);
2020
array->sorted = 1;

sha1-array.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ struct sha1_array {
1111
#define SHA1_ARRAY_INIT { NULL, 0, 0, 0 }
1212

1313
void sha1_array_append(struct sha1_array *array, const unsigned char *sha1);
14-
void sha1_array_sort(struct sha1_array *array);
1514
int sha1_array_lookup(struct sha1_array *array, const unsigned char *sha1);
1615
void sha1_array_clear(struct sha1_array *array);
1716

0 commit comments

Comments
 (0)