summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_physdev.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2005-02-01 15:38:20 +0000
committerHarald Welte <laforge@gnumonks.org>2005-02-01 15:38:20 +0000
commit02aa73312d6078b6de26757d5a558e0085ec20b5 (patch)
tree6063c31b752d5b6db91f096319850c3604259cb3 /extensions/libip6t_physdev.c
parent2b9d07b98158250d6b77efc8fc0148813339c59d (diff)
make structure initializers use C99 standard (Harald Welte)
Diffstat (limited to 'extensions/libip6t_physdev.c')
-rw-r--r--extensions/libip6t_physdev.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/extensions/libip6t_physdev.c b/extensions/libip6t_physdev.c
index d5fc506a..ab2087cb 100644
--- a/extensions/libip6t_physdev.c
+++ b/extensions/libip6t_physdev.c
@@ -210,20 +210,18 @@ static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match
printf(" ");
}
-static
-struct ip6tables_match physdev
-= { NULL,
- "physdev",
- IPTABLES_VERSION,
- IP6T_ALIGN(sizeof(struct ip6t_physdev_info)),
- IP6T_ALIGN(sizeof(struct ip6t_physdev_info)),
- &help,
- &init,
- &parse,
- &final_check,
- &print,
- &save,
- opts
+static struct ip6tables_match physdev = {
+ .name = "physdev",
+ .version = IPTABLES_VERSION,
+ .size = IP6T_ALIGN(sizeof(struct ip6t_physdev_info)),
+ .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_physdev_info)),
+ .help = &help,
+ .init = &init,
+ .parse = &parse,
+ .final_check = &final_check,
+ .print = &print,
+ .save = &save,
+ .extra_opts = opts,
};
void _init(void)