summaryrefslogtreecommitdiff
path: root/sys/netinet/in_proto.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-03-02 08:58:25 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-03-02 08:58:25 +0000
commit90af7a467abd85b4959c7db57e355b8d4d0e214c (patch)
tree111d3f8dc3c66c845cc5554464db7885aa1e7fc7 /sys/netinet/in_proto.c
parent1acf00433c7be385637f18636bc0135962b70af0 (diff)
Convert domain declarations to C99 initializers.
ok dhill@, florian@, bluhm@
Diffstat (limited to 'sys/netinet/in_proto.c')
-rw-r--r--sys/netinet/in_proto.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c
index b1ca73acb39..ca77c87d208 100644
--- a/sys/netinet/in_proto.c
+++ b/sys/netinet/in_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_proto.c,v 1.73 2017/02/22 19:34:42 dhill Exp $ */
+/* $OpenBSD: in_proto.c,v 1.74 2017/03/02 08:58:24 mpi Exp $ */
/* $NetBSD: in_proto.c,v 1.14 1996/02/18 18:58:32 christos Exp $ */
/*
@@ -438,8 +438,12 @@ struct protosw inetsw[] = {
}
};
-struct domain inetdomain =
- { AF_INET, "internet", 0, 0, 0,
- inetsw, &inetsw[nitems(inetsw)],
- sizeof(struct sockaddr_in),
- offsetof(struct sockaddr_in, sin_addr), 32 };
+struct domain inetdomain = {
+ .dom_family = AF_INET,
+ .dom_name = "internet",
+ .dom_protosw = inetsw,
+ .dom_protoswNPROTOSW = &inetsw[nitems(inetsw)],
+ .dom_rtkeylen = sizeof(struct sockaddr_in),
+ .dom_rtoffset = offsetof(struct sockaddr_in, sin_addr),
+ .dom_maxplen = 32
+};