aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-ohash.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-07-18 18:35:05 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-07-18 18:35:05 +0000
commit6b89b9b2b63e9e25bf91f88bab4163a497bfcca4 (patch)
tree4382e97ed0bce672108c9225dfbad6e23ca970d6 /test-ohash.c
parent7be71b94a8ef4f8dd907990987d02db901b5efda (diff)
downloadmandoc-6b89b9b2b63e9e25bf91f88bab4163a497bfcca4.tar.gz
mandoc-6b89b9b2b63e9e25bf91f88bab4163a497bfcca4.tar.zst
mandoc-6b89b9b2b63e9e25bf91f88bab4163a497bfcca4.zip
cope with -Wmissing-prototypes
Diffstat (limited to 'test-ohash.c')
-rw-r--r--test-ohash.c24
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)