source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: cope with -Wmissing-prototypes
@ 2016-07-18 18:35 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2016-07-18 18:35 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-18 18:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-18 18:35 mdocml: cope with -Wmissing-prototypes schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).