diff options
author | Patrick McHardy <kaber@trash.net> | 2008-06-07 15:15:29 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-06-07 15:15:29 +0200 |
commit | 0ea82bc43e9262cdbb9880ca56bb514db4c77f8e (patch) | |
tree | 07ad82fe41e40a83b01bba3f7710841b6d426080 | |
parent | ddffcfbe3c97d1eb81d497261ff376cd336974b3 (diff) |
sparse warning fixes: integer used as pointer
Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r-- | extensions/libipt_SET.c | 6 | ||||
-rw-r--r-- | extensions/libipt_set.c | 4 | ||||
-rw-r--r-- | extensions/libxt_CONNSECMARK.c | 4 | ||||
-rw-r--r-- | extensions/libxt_SECMARK.c | 2 | ||||
-rw-r--r-- | extensions/libxt_quota.c | 2 | ||||
-rw-r--r-- | ip6tables-restore.c | 2 | ||||
-rw-r--r-- | iptables-restore.c | 4 |
7 files changed, 12 insertions, 12 deletions
diff --git a/extensions/libipt_SET.c b/extensions/libipt_SET.c index 378b77e4..62d959fe 100644 --- a/extensions/libipt_SET.c +++ b/extensions/libipt_SET.c @@ -34,9 +34,9 @@ static void SET_help(void) } static const struct option SET_opts[] = { - {"add-set", 1, 0, '1'}, - {"del-set", 1, 0, '2'}, - {0} + {"add-set", 1, NULL, '1'}, + {"del-set", 1, NULL, '2'}, + { } }; /* Initialize the target. */ diff --git a/extensions/libipt_set.c b/extensions/libipt_set.c index dcb74df9..759bca33 100644 --- a/extensions/libipt_set.c +++ b/extensions/libipt_set.c @@ -32,8 +32,8 @@ static void set_help(void) } static const struct option set_opts[] = { - {"set", 1, 0, '1'}, - {0} + {"set", 1, NULL, '1'}, + { } }; /* Initialize the match. */ diff --git a/extensions/libxt_CONNSECMARK.c b/extensions/libxt_CONNSECMARK.c index 579ea4c3..2c425cb8 100644 --- a/extensions/libxt_CONNSECMARK.c +++ b/extensions/libxt_CONNSECMARK.c @@ -23,8 +23,8 @@ static void CONNSECMARK_help(void) } static const struct option CONNSECMARK_opts[] = { - { "save", 0, 0, '1' }, - { "restore", 0, 0, '2' }, + { "save", 0, NULL, '1' }, + { "restore", 0, NULL, '2' }, { .name = NULL } }; diff --git a/extensions/libxt_SECMARK.c b/extensions/libxt_SECMARK.c index feee0e43..7d3dbfa2 100644 --- a/extensions/libxt_SECMARK.c +++ b/extensions/libxt_SECMARK.c @@ -22,7 +22,7 @@ static void SECMARK_help(void) } static const struct option SECMARK_opts[] = { - { "selctx", 1, 0, '1' }, + { "selctx", 1, NULL, '1' }, { .name = NULL } }; diff --git a/extensions/libxt_quota.c b/extensions/libxt_quota.c index a642aa49..8e178fe7 100644 --- a/extensions/libxt_quota.c +++ b/extensions/libxt_quota.c @@ -77,7 +77,7 @@ quota_parse(int c, char **argv, int invert, unsigned int *flags, return 1; } -struct xtables_match quota_match = { +static struct xtables_match quota_match = { .family = AF_UNSPEC, .name = "quota", .version = XTABLES_VERSION, diff --git a/ip6tables-restore.c b/ip6tables-restore.c index 9f6108a2..cd6dd032 100644 --- a/ip6tables-restore.c +++ b/ip6tables-restore.c @@ -124,7 +124,7 @@ int main(int argc, char *argv[]) int c; char curtable[IP6T_TABLE_MAXNAMELEN + 1]; FILE *in; - const char *modprobe = 0; + const char *modprobe = NULL; int in_table = 0, testing = 0; program_name = "ip6tables-restore"; diff --git a/iptables-restore.c b/iptables-restore.c index 879683c5..4b199d94 100644 --- a/iptables-restore.c +++ b/iptables-restore.c @@ -124,9 +124,9 @@ main(int argc, char *argv[]) int c; char curtable[IPT_TABLE_MAXNAMELEN + 1]; FILE *in; - const char *modprobe = 0; + const char *modprobe = NULL; int in_table = 0, testing = 0; - const char *tablename = 0; + const char *tablename = NULL; program_name = "iptables-restore"; program_version = XTABLES_VERSION; |