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-xml.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-xml.c')
-rw-r--r-- | iptables-xml.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/iptables-xml.c b/iptables-xml.c index 404d0206..94f2e39c 100644 --- a/iptables-xml.c +++ b/iptables-xml.c @@ -99,16 +99,15 @@ char closeRuleTag[IPT_TABLE_MAXNAMELEN + 1]; char curTable[IPT_TABLE_MAXNAMELEN + 1]; char curChain[IPT_CHAIN_MAXNAMELEN + 1]; -typedef struct chain -{ +struct chain { char *chain; char *policy; struct ipt_counters count; int created; -} chain; +}; #define maxChains 10240 /* max chains per table */ -static chain chains[maxChains]; +static struct chain chains[maxChains]; static int nextChain = 0; /* funCtion adding one argument to newargv, updating newargc |