diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-02-11 00:33:30 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-06 17:43:13 +0200 |
commit | dbb77543ad6afe29e9a1881b2d4fc212de621a55 (patch) | |
tree | 52cdf11fded05c39431fc612891253044d0ee9f2 /iptables-save.c | |
parent | 7a236f4cc685a420c1a782a5db614a93baf37ccf (diff) |
Fix -Wshadow warnings and clean up xt_sctp.h
Note: xt_sctp.h is still not merged upstream in the kernel as of
this commit. But a refactoring was really needed.
Diffstat (limited to 'iptables-save.c')
-rw-r--r-- | iptables-save.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/iptables-save.c b/iptables-save.c index f8a61c21..f82c8a77 100644 --- a/iptables-save.c +++ b/iptables-save.c @@ -20,7 +20,7 @@ #include <dlfcn.h> #endif -static int binary = 0, counters = 0; +static int show_binary = 0, show_counters = 0; static struct option options[] = { { "binary", 0, 0, 'b' }, @@ -287,7 +287,7 @@ static int do_output(const char *tablename) exit_error(OTHER_PROBLEM, "Can't initialize: %s\n", iptc_strerror(errno)); - if (!binary) { + if (!show_binary) { time_t now = time(NULL); printf("# Generated by iptables-save v%s on %s", @@ -320,7 +320,7 @@ static int do_output(const char *tablename) /* Dump out rules */ e = iptc_first_rule(chain, &h); while(e) { - print_rule(e, &h, chain, counters); + print_rule(e, &h, chain, show_counters); e = iptc_next_rule(e, &h); } } @@ -367,11 +367,11 @@ main(int argc, char *argv[]) while ((c = getopt_long(argc, argv, "bcdt:", options, NULL)) != -1) { switch (c) { case 'b': - binary = 1; + show_binary = 1; break; case 'c': - counters = 1; + show_counters = 1; break; case 't': |