summaryrefslogtreecommitdiffstats
path: root/ip6tables-restore.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-11-10 16:59:27 +0100
committerPatrick McHardy <kaber@trash.net>2008-11-10 16:59:27 +0100
commitfd1873110f8e57be578df17fc9d03536b10f4f73 (patch)
treea75c7f77ffef9cc09d32a7b1158a3cb05583d464 /ip6tables-restore.c
parent5a942f9501f7ce287e1c37c553eb02a1e269e081 (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 'ip6tables-restore.c')
-rw-r--r--ip6tables-restore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ip6tables-restore.c b/ip6tables-restore.c
index f51e38f1..d2a9df3c 100644
--- a/ip6tables-restore.c
+++ b/ip6tables-restore.c
@@ -56,10 +56,10 @@ static void print_usage(const char *name, const char *version)
exit(1);
}
-static ip6tc_handle_t create_handle(const char *tablename,
+static struct ip6tc_handle *create_handle(const char *tablename,
const char *modprobe)
{
- ip6tc_handle_t handle;
+ struct ip6tc_handle *handle;
handle = ip6tc_init(tablename);
@@ -119,7 +119,7 @@ int ip6tables_restore_main(int argc, char *argv[])
int main(int argc, char *argv[])
#endif
{
- ip6tc_handle_t handle = NULL;
+ struct ip6tc_handle *handle = NULL;
char buffer[10240];
int c;
char curtable[IP6T_TABLE_MAXNAMELEN + 1];