summaryrefslogtreecommitdiffstats
path: root/iptables-xml.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-06-07 15:07:18 +0200
committerPatrick McHardy <kaber@trash.net>2008-06-07 15:07:18 +0200
commitddffcfbe3c97d1eb81d497261ff376cd336974b3 (patch)
treec609e168a6fd359dfa9796990f34666a32b1b29b /iptables-xml.c
parent1f23d3c2544f4329b31804392abc4eff434ba308 (diff)
iptables-xml: sparse fixes
- Using plain integer as NULL pointer - Undeclared non-static variables Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'iptables-xml.c')
-rw-r--r--iptables-xml.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/iptables-xml.c b/iptables-xml.c
index fea63ef8..8aee5c24 100644
--- a/iptables-xml.c
+++ b/iptables-xml.c
@@ -52,9 +52,9 @@ static int verbose = 0;
static int combine = 0;
/* Keeping track of external matches and targets. */
static struct option options[] = {
- {"verbose", 0, 0, 'v'},
- {"combine", 0, 0, 'c'},
- {"help", 0, 0, 'h'},
+ {"verbose", 0, NULL, 'v'},
+ {"combine", 0, NULL, 'c'},
+ {"help", 0, NULL, 'h'},
{ .name = NULL }
};
@@ -95,10 +95,10 @@ static unsigned int oldargc = 0;
static int newargvattr[255];
#define IPT_CHAIN_MAXNAMELEN IPT_TABLE_MAXNAMELEN
-char closeActionTag[IPT_TABLE_MAXNAMELEN + 1];
-char closeRuleTag[IPT_TABLE_MAXNAMELEN + 1];
-char curTable[IPT_TABLE_MAXNAMELEN + 1];
-char curChain[IPT_CHAIN_MAXNAMELEN + 1];
+static char closeActionTag[IPT_TABLE_MAXNAMELEN + 1];
+static char closeRuleTag[IPT_TABLE_MAXNAMELEN + 1];
+static char curTable[IPT_TABLE_MAXNAMELEN + 1];
+static char curChain[IPT_CHAIN_MAXNAMELEN + 1];
struct chain {
char *chain;