summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-10-04 16:23:20 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-10-04 16:23:20 +0000
commit402d34e55b04c367c20863a8e40b41da945fd6b4 (patch)
treecda0e4bb9c3ab7a829136d1f24a5aba0691dd015
parent62f9b200e37b8bf97ff5c1284b363b7f0b190de7 (diff)
[PATCH 01/13] Remove stray NULLs
Mixing member accessors (non-named vs named) is not good. Remove stray NULL. Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
-rw-r--r--extensions/libip6t_HL.c2
-rw-r--r--extensions/libipt_MASQUERADE.c2
-rw-r--r--extensions/libipt_realm.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/extensions/libip6t_HL.c b/extensions/libip6t_HL.c
index 32fcd4a..49ebfbc 100644
--- a/extensions/libip6t_HL.c
+++ b/extensions/libip6t_HL.c
@@ -146,7 +146,7 @@ static const struct option opts[] = {
};
static
-struct ip6tables_target HL = { NULL,
+struct ip6tables_target HL = {
.name = "HL",
.version = IPTABLES_VERSION,
.size = IP6T_ALIGN(sizeof(struct ip6t_HL_info)),
diff --git a/extensions/libipt_MASQUERADE.c b/extensions/libipt_MASQUERADE.c
index 131c1dc..5796b27 100644
--- a/extensions/libipt_MASQUERADE.c
+++ b/extensions/libipt_MASQUERADE.c
@@ -161,7 +161,7 @@ save(const void *ip, const struct xt_entry_target *target)
printf("--random ");
}
-static struct iptables_target masq = { NULL,
+static struct iptables_target masq = {
.name = "MASQUERADE",
.version = IPTABLES_VERSION,
.size = IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
diff --git a/extensions/libipt_realm.c b/extensions/libipt_realm.c
index 8730243..2304d68 100644
--- a/extensions/libipt_realm.c
+++ b/extensions/libipt_realm.c
@@ -250,7 +250,7 @@ final_check(unsigned int flags)
"realm match: You must specify `--realm'");
}
-static struct iptables_match realm = { NULL,
+static struct iptables_match realm = {
.name = "realm",
.version = IPTABLES_VERSION,
.size = IPT_ALIGN(sizeof(struct ipt_realm_info)),