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 --- libiptc/libip6tc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libiptc/libip6tc.c') diff --git a/libiptc/libip6tc.c b/libiptc/libip6tc.c index 71e262e8..221a9f33 100644 --- a/libiptc/libip6tc.c +++ b/libiptc/libip6tc.c @@ -46,7 +46,7 @@ typedef unsigned int socklen_t; #define STRUCT_REPLACE struct ip6t_replace #define STRUCT_TC_HANDLE struct ip6tc_handle -#define TC_HANDLE_T ip6tc_handle_t +#define xtc_handle ip6tc_handle #define ENTRY_ITERATE IP6T_ENTRY_ITERATE #define TABLE_MAXNAMELEN IP6T_TABLE_MAXNAMELEN @@ -131,7 +131,7 @@ ipv6_prefix_length(const struct in6_addr *a) } static int -dump_entry(struct ip6t_entry *e, const ip6tc_handle_t handle) +dump_entry(struct ip6t_entry *e, struct ip6tc_handle *const handle) { size_t i; char buf[40]; @@ -261,7 +261,7 @@ unconditional(const struct ip6t_ip6 *ipv6) #ifdef IPTC_DEBUG /* Do every conceivable sanity check on the handle */ static void -do_check(TC_HANDLE_T h, unsigned int line) +do_check(struct xtc_handle *h, unsigned int line) { unsigned int i, n; unsigned int user_offset; /* Offset of first user chain */ -- cgit v1.2.3