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_esp.c b/extensions/libipt_esp.c
index 531fdd1..4abfba3 100644
--- a/extensions/libipt_esp.c
+++ b/extensions/libipt_esp.c
@@ -168,20 +168,19 @@
}
-static
-struct iptables_match esp
-= { NULL,
- "esp",
- IPTABLES_VERSION,
- IPT_ALIGN(sizeof(struct ipt_esp)),
- IPT_ALIGN(sizeof(struct ipt_esp)),
- &help,
- &init,
- &parse,
- &final_check,
- &print,
- &save,
- opts
+static struct iptables_match esp = {
+ .next = NULL,
+ .name = "esp",
+ .version = IPTABLES_VERSION,
+ .size = IPT_ALIGN(sizeof(struct ipt_esp)),
+ .userspacesize = IPT_ALIGN(sizeof(struct ipt_esp)),
+ .help = &help,
+ .init = &init,
+ .parse = &parse,
+ .final_check = &final_check,
+ .print = &print,
+ .save = &save,
+ .extra_opts = opts
};
void