From fd1873110f8e57be578df17fc9d03536b10f4f73 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 10 Nov 2008 16:59:27 +0100 Subject: libiptc: remove typedef indirection Don't you hate it when iptc_handle_t *x actually is a double-indirection struct iptc_handle **? This also shows the broken constness model, since "const iptc_handle_t x" = "iptc_handle_t const x" = "struct iptc_handle *const x", which is like no const at all. Lots of things to do then. Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- include/ip6tables.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/ip6tables.h') diff --git a/include/ip6tables.h b/include/ip6tables.h index dfbc9b2f..9e264553 100644 --- a/include/ip6tables.h +++ b/include/ip6tables.h @@ -17,11 +17,11 @@ extern int line; /* Your shared library should call one of these. */ extern int do_command6(int argc, char *argv[], char **table, - ip6tc_handle_t *handle); + struct ip6tc_handle **handle); -extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, ip6tc_handle_t *), int verbose, int builtinstoo, ip6tc_handle_t *handle); -extern int flush_entries(const ip6t_chainlabel chain, int verbose, ip6tc_handle_t *handle); -extern int delete_chain(const ip6t_chainlabel chain, int verbose, ip6tc_handle_t *handle); -void print_rule(const struct ip6t_entry *e, ip6tc_handle_t *h, const char *chain, int counters); +extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, struct ip6tc_handle **), int verbose, int builtinstoo, struct ip6tc_handle **handle); +extern int flush_entries(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle **handle); +extern int delete_chain(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle **handle); +void print_rule(const struct ip6t_entry *e, struct ip6tc_handle **h, const char *chain, int counters); #endif /*_IP6TABLES_USER_H*/ -- cgit v1.2.3