X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/b6d8272551435098c716c546a5201206517e5da9..f55d9bcb0329b39d14efff2365a86e1a70441085:/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)