aboutsummaryrefslogtreecommitdiff
path: root/sort.c
diff options
context:
space:
mode:
Diffstat (limited to 'sort.c')
-rw-r--r--sort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sort.c b/sort.c
index d1897b6..2e20cac 100644
--- a/sort.c
+++ b/sort.c
@@ -93,14 +93,14 @@ void arraysort_fn(void *array, size_t nmemb, size_t size,
#include <stdlib.h>
#include <time.h>
-int testcmp(const void *av, const void *bv, void *ctx)
+static int testcmp(const void *av, const void *bv, void *ctx)
{
int a = *(const int *)av, b = *(const int *)bv;
const int *keys = (const int *)ctx;
return keys[a] < keys[b] ? -1 : keys[a] > keys[b] ? +1 : 0;
}
-int resetcmp(const void *av, const void *bv)
+static int resetcmp(const void *av, const void *bv)
{
int a = *(const int *)av, b = *(const int *)bv;
return a < b ? -1 : a > b ? +1 : 0;