diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-18 18:35:05 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-18 18:35:05 +0000 |
commit | 0d64a6e6bb89ff458faef3450acd365244bcf4a8 (patch) | |
tree | f2e367f308c4249311888c3cd21ccbb72096177d /test-ohash.c | |
parent | 2d3d5f5fd44b5ad2d7a6e25fce7aa4778e4a3a7b (diff) | |
download | mandoc-0d64a6e6bb89ff458faef3450acd365244bcf4a8.tar.gz |
cope with -Wmissing-prototypes
Diffstat (limited to 'test-ohash.c')
-rw-r--r-- | test-ohash.c | 24 |
1 files changed, 21 insertions, 3 deletions
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 <stdlib.h> #include <ohash.h> -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) |