From 6b89b9b2b63e9e25bf91f88bab4163a497bfcca4 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 18 Jul 2016 18:35:05 +0000 Subject: cope with -Wmissing-prototypes --- test-ohash.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'test-ohash.c') diff --git a/test-ohash.c b/test-ohash.c index 138d520d..1844fe56 100644 --- a/test-ohash.c +++ b/test-ohash.c @@ -3,9 +3,27 @@ #include #include -void *xmalloc(size_t sz, void *arg) { return calloc(1,sz); } -void *xcalloc(size_t nmemb, size_t sz, void *arg) { return calloc(nmemb,sz); } -void xfree(void *p, void *arg) { free(p); } +static void *xmalloc(size_t, void *); +static void *xcalloc(size_t, size_t, void *); +static void xfree(void *, void *); + + +static void * +xmalloc(size_t sz, void *arg) { + return calloc(1,sz); +} + +static void * +xcalloc(size_t nmemb, size_t sz, void *arg) +{ + return calloc(nmemb,sz); +} + +static void +xfree(void *p, void *arg) +{ + free(p); +} int main(void) -- cgit v1.2.3-56-ge451