X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/b7a2831fbcd6d60e1569cdd4aa4e19945ffd5c60..c627c71afa8524db228768513547b8d836cc40c0:/test-ohash.c diff --git a/test-ohash.c b/test-ohash.c index 522ad708..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)