From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id d7f7c012 for ; Mon, 18 Jul 2016 13:35:35 -0500 (EST) Date: Mon, 18 Jul 2016 13:35:35 -0500 (EST) Message-Id: <12451253663363441273.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: cope with -Wmissing-prototypes X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- cope with -Wmissing-prototypes Modified Files: -------------- mdocml: test-ohash.c test-vasprintf.c Revision Data ------------- Index: test-ohash.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/test-ohash.c,v retrieving revision 1.4 retrieving revision 1.5 diff -Ltest-ohash.c -Ltest-ohash.c -u -p -r1.4 -r1.5 --- test-ohash.c +++ 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) Index: test-vasprintf.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/test-vasprintf.c,v retrieving revision 1.3 retrieving revision 1.4 diff -Ltest-vasprintf.c -Ltest-vasprintf.c -u -p -r1.3 -r1.4 --- test-vasprintf.c +++ test-vasprintf.c @@ -23,7 +23,10 @@ #include #include -int +static int testfunc(char **, const char *, ...); + + +static int testfunc(char **ret, const char *format, ...) { va_list ap; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv