From: schwarze@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: cope with -Wmissing-prototypes
Date: Mon, 18 Jul 2016 13:35:35 -0500 (EST) [thread overview]
Message-ID: <12451253663363441273.enqueue@fantadrom.bsd.lv> (raw)
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
reply other threads:[~2016-07-18 18:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12451253663363441273.enqueue@fantadrom.bsd.lv \
--to=schwarze@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).