From 08181c2f94e2c802afd2694c8161a3dbcda1efc7 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 29 Mar 2016 08:59:26 +0200 Subject: [PATCH] made list helpers static --- lib/list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/list.c b/lib/list.c index 8feacb86f..c083c0f7a 100644 --- a/lib/list.c +++ b/lib/list.c @@ -22,11 +22,11 @@ static int cmp_lookup(const void *a, const void *b) { return strcmp(obj->name, b); } -int cmp_contains(const void *a, const void *b) { +static int cmp_contains(const void *a, const void *b) { return a == b ? 0 : 1; } -int cmp_sort(const void *a, const void *b, void *thunk) { +static int cmp_sort(const void *a, const void *b, void *thunk) { cmp_cb_t cmp = (cmp_cb_t) thunk; return cmp(*(void **) a, *(void **) b);