From 33690a1aec0b6309ff90066ca56285b6e43013f2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 11 Feb 2008 00:54:00 +0100 Subject: Fix all remaining warnings (missing declarations, missing prototypes) --- include/iptables.h | 2 -- include/libiptc/libip6tc.h | 2 ++ include/libiptc/libiptc.h | 2 ++ include/xtables.h | 7 +++++++ include/xtables/internal.h | 6 ++++++ 5 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 include/xtables/internal.h (limited to 'include') diff --git a/include/iptables.h b/include/iptables.h index f39410c0..7ce90801 100644 --- a/include/iptables.h +++ b/include/iptables.h @@ -24,8 +24,6 @@ extern int line; extern void register_match(struct iptables_match *me); extern void register_target(struct iptables_target *me); -extern u_int16_t parse_protocol(const char *s); - extern int do_command(int argc, char *argv[], char **table, iptc_handle_t *handle); extern int delete_chain(const ipt_chainlabel chain, int verbose, diff --git a/include/libiptc/libip6tc.h b/include/libiptc/libip6tc.h index 50696898..6e8a5657 100644 --- a/include/libiptc/libip6tc.h +++ b/include/libiptc/libip6tc.h @@ -152,4 +152,6 @@ const char *ip6tc_strerror(int err); /* Return prefix length, or -1 if not contiguous */ int ipv6_prefix_length(const struct in6_addr *a); +extern void dump_entries6(const ip6tc_handle_t); + #endif /* _LIBIP6TC_H */ diff --git a/include/libiptc/libiptc.h b/include/libiptc/libiptc.h index 30f5b7d1..1f6f95d8 100644 --- a/include/libiptc/libiptc.h +++ b/include/libiptc/libiptc.h @@ -159,6 +159,8 @@ int iptc_get_raw_socket(void); /* Translates errno numbers into more human-readable form than strerror. */ const char *iptc_strerror(int err); +extern void dump_entries(const iptc_handle_t); + #ifdef __cplusplus } #endif diff --git a/include/xtables.h b/include/xtables.h index 4b75e2ca..157f355c 100644 --- a/include/xtables.h +++ b/include/xtables.h @@ -267,4 +267,11 @@ extern void save_string(const char *value); # define _init __attribute__((constructor)) _INIT #endif +/* Present in both iptables.c and ip6tables.c */ +extern u_int16_t parse_protocol(const char *s); + +#ifdef XTABLES_INTERNAL +# include +#endif + #endif /* _XTABLES_H */ diff --git a/include/xtables/internal.h b/include/xtables/internal.h new file mode 100644 index 00000000..3be72e3d --- /dev/null +++ b/include/xtables/internal.h @@ -0,0 +1,6 @@ +#ifndef _XTABLES_INTERNAL_H +#define _XTABLES_INTERNAL_H 1 + +extern void _init(void); + +#endif /* _XTABLES_INTERNAL_H */ -- cgit v1.2.3