diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-11-10 17:00:41 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-11-10 17:00:41 +0100 |
commit | 1c9015b2cb483678f153121255e10ec0bbfde3e6 (patch) | |
tree | ceb7afdf25de51701556fffc7469bc7c4c270570 /ip6tables-save.c | |
parent | fd1873110f8e57be578df17fc9d03536b10f4f73 (diff) |
libiptc: remove indirections
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'ip6tables-save.c')
-rw-r--r-- | ip6tables-save.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ip6tables-save.c b/ip6tables-save.c index 360f0e4f..d5f8e54b 100644 --- a/ip6tables-save.c +++ b/ip6tables-save.c @@ -81,15 +81,15 @@ static int do_output(const char *tablename) /* Dump out chain names first, * thereby preventing dependency conflicts */ - for (chain = ip6tc_first_chain(&h); + for (chain = ip6tc_first_chain(h); chain; - chain = ip6tc_next_chain(&h)) { + chain = ip6tc_next_chain(h)) { printf(":%s ", chain); if (ip6tc_builtin(chain, h)) { struct ip6t_counters count; printf("%s ", - ip6tc_get_policy(chain, &count, &h)); + ip6tc_get_policy(chain, &count, h)); printf("[%llu:%llu]\n", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); } else { printf("- [0:0]\n"); @@ -97,16 +97,16 @@ static int do_output(const char *tablename) } - for (chain = ip6tc_first_chain(&h); + for (chain = ip6tc_first_chain(h); chain; - chain = ip6tc_next_chain(&h)) { + chain = ip6tc_next_chain(h)) { const struct ip6t_entry *e; /* Dump out rules */ - e = ip6tc_first_rule(chain, &h); + e = ip6tc_first_rule(chain, h); while(e) { - print_rule(e, &h, chain, show_counters); - e = ip6tc_next_rule(e, &h); + print_rule(e, h, chain, show_counters); + e = ip6tc_next_rule(e, h); } } @@ -118,7 +118,7 @@ static int do_output(const char *tablename) exit_error(OTHER_PROBLEM, "Binary NYI\n"); } - ip6tc_free(&h); + ip6tc_free(h); return 1; } |