diff options
-rw-r--r-- | test-ohash.c | 24 | ||||
-rw-r--r-- | test-vasprintf.c | 5 |
2 files changed, 25 insertions, 4 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) diff --git a/test-vasprintf.c b/test-vasprintf.c index 660ba5f5..017a56df 100644 --- a/test-vasprintf.c +++ b/test-vasprintf.c @@ -23,7 +23,10 @@ #include <stdio.h> #include <string.h> -int +static int testfunc(char **, const char *, ...); + + +static int testfunc(char **ret, const char *format, ...) { va_list ap; |