diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-11-10 16:59:27 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-11-10 16:59:27 +0100 |
commit | fd1873110f8e57be578df17fc9d03536b10f4f73 (patch) | |
tree | a75c7f77ffef9cc09d32a7b1158a3cb05583d464 /libiptc/libip6tc.c | |
parent | 5a942f9501f7ce287e1c37c553eb02a1e269e081 (diff) |
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 <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'libiptc/libip6tc.c')
-rw-r--r-- | libiptc/libip6tc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 */ |