summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-01-05 20:29:01 +0000
committerbz <bz@FreeBSD.org>2009-01-05 20:29:01 +0000
commit086c4b5b79a4577363e19815ac979062ad79ce48 (patch)
treec8cf8c207fc8f3d5554bda654200fb06dea2b084 /sys/netinet6
parent46249a2f7459b043ea535462ad382781d3bbc556 (diff)
downloadFreeBSD-src-086c4b5b79a4577363e19815ac979062ad79ce48.zip
FreeBSD-src-086c4b5b79a4577363e19815ac979062ad79ce48.tar.gz
Switch the last protosw* structs to C99 initializers.
Reviewed by: ed, julian, Christoph Mallon <christoph.mallon@gmx.de> MFC after: 2 weeks
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6_gif.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/netinet6/in6_gif.c b/sys/netinet6/in6_gif.c
index 3441f84..3e17819 100644
--- a/sys/netinet6/in6_gif.c
+++ b/sys/netinet6/in6_gif.c
@@ -75,11 +75,15 @@ static int gif_validate6(const struct ip6_hdr *, struct gif_softc *,
struct ifnet *);
extern struct domain inet6domain;
-struct ip6protosw in6_gif_protosw =
-{ SOCK_RAW, &inet6domain, 0/* IPPROTO_IPV[46] */, PR_ATOMIC|PR_ADDR,
- in6_gif_input, rip6_output, 0, rip6_ctloutput,
- 0, 0, 0, 0,
- &rip6_usrreqs
+struct ip6protosw in6_gif_protosw = {
+ .pr_type = SOCK_RAW,
+ .pr_domain = &inet6domain,
+ .pr_protocol = 0, /* IPPROTO_IPV[46] */
+ .pr_flags = PR_ATOMIC|PR_ADDR,
+ .pr_input = in6_gif_input,
+ .pr_output = rip6_output,
+ .pr_ctloutput = rip6_ctloutput,
+ .pr_usrreqs = &rip6_usrreqs
};
int
OpenPOWER on IntegriCloud