Pablo Neira: extensions conversion to C99 structure initialization
(I removed the revision stuff for the moment, but this needs to go in before the code moves too much --RR)
diff --git a/extensions/libipt_tcp.c b/extensions/libipt_tcp.c
index 37613ac..5751500 100644
--- a/extensions/libipt_tcp.c
+++ b/extensions/libipt_tcp.c
@@ -423,20 +423,20 @@
}
}
-static
-struct iptables_match tcp
-= { NULL,
- "tcp",
- IPTABLES_VERSION,
- IPT_ALIGN(sizeof(struct ipt_tcp)),
- IPT_ALIGN(sizeof(struct ipt_tcp)),
- &help,
- &init,
- &parse,
- &final_check,
- &print,
- &save,
- opts };
+static struct iptables_match tcp = {
+ .next = NULL,
+ .name = "tcp",
+ .version = IPTABLES_VERSION,
+ .size = IPT_ALIGN(sizeof(struct ipt_tcp)),
+ .userspacesize = IPT_ALIGN(sizeof(struct ipt_tcp)),
+ .help = &help,
+ .init = &init,
+ .parse = &parse,
+ .final_check = &final_check,
+ .print = &print,
+ .save = &save,
+ .extra_opts = opts
+};
void
_init(void)