summaryrefslogtreecommitdiffstats
path: root/include/iptables.h
diff options
context:
space:
mode:
authorVijay Subramanian <subramanian.vijay@gmail.com>2013-02-26 09:12:07 +0000
committerStephen Hemminger <stephen@networkplumber.org>2013-02-26 17:35:26 -0800
commit9235195666af7d887771cf557ef2bd3f00b9ecc8 (patch)
tree25391cc71fdaea7fe01b40c0a486c045dfddb69c /include/iptables.h
parent51ff9f2453d066933f24170f0106a7deeefa02d9 (diff)
Fix compilation error of m_ipt.c with -Werror enabled
Commit (5a650703d47e10aa386406c855eff5a593b2120b Makefile: make warnings into errors ) causes the following build error. gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -DCONFIG_GACT -DCONFIG_GACT_PROB -DIPT_LIB_DIR=\"/lib/xtables\" -DYY_NO_INPUT -c -o m_ipt.o m_ipt.c cc1: warnings being treated as errors m_ipt.c:72: error: no previous prototype for 'xtables_register_target' m_ipt.c:361: error: no previous prototype for 'build_st' make[1]: *** [m_ipt.o] Error 1 This is fixed by adding the prototype in the header include/iptables.h I am not sure if this is due to something wrong on my build system but I am using current glibc 2.17. Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
Diffstat (limited to 'include/iptables.h')
-rw-r--r--include/iptables.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/iptables.h b/include/iptables.h
index dd844c1e..f1e62e23 100644
--- a/include/iptables.h
+++ b/include/iptables.h
@@ -143,6 +143,8 @@ extern int line;
/* Your shared library should call one of these. */
extern void register_match(struct iptables_match *me);
extern void register_target(struct iptables_target *me);
+extern void xtables_register_target(struct iptables_target *me);
+extern int build_st(struct iptables_target *target, struct ipt_entry_target *t);
extern struct in_addr *dotted_to_addr(const char *dotted);
extern char *addr_to_dotted(const struct in_addr *addrp);