[prev in list] [next in list] [prev in thread] [next in thread]
List: mandoc-source
Subject: mdocml: cope with -Wmissing-prototypes
From: schwarze () mdocml ! bsd ! lv
Date: 2016-07-18 18:35:35
Message-ID: 12451253663363441273.enqueue () fantadrom ! bsd ! lv
[Download RAW message or body]
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 <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)
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 <stdio.h>
#include <string.h>
-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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic