summaryrefslogtreecommitdiff
path: root/sys/netinet/in_proto.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2021-05-25 22:45:11 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2021-05-25 22:45:11 +0000
commit879df70c3f9d6dfd798576c79b2dc21ef470c9c2 (patch)
treedfc82cd179c0e9818eca5ee087da3739ff422777 /sys/netinet/in_proto.c
parent389d274508daed57afbbdf7a04db903700e1f7a0 (diff)
As network features are not added dynamically, the domain structures
are constant. Having more const makes MP review easier. More pointers are mapped read-only in the kernel image. OK deraadt@ mvs@
Diffstat (limited to 'sys/netinet/in_proto.c')
-rw-r--r--sys/netinet/in_proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c
index f474f0ca901..071f0b04b71 100644
--- a/sys/netinet/in_proto.c
+++ b/sys/netinet/in_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_proto.c,v 1.94 2019/11/04 23:52:28 dlg Exp $ */
+/* $OpenBSD: in_proto.c,v 1.95 2021/05/25 22:45:09 bluhm Exp $ */
/* $NetBSD: in_proto.c,v 1.14 1996/02/18 18:58:32 christos Exp $ */
/*
@@ -419,7 +419,7 @@ const struct protosw inetsw[] = {
}
};
-struct domain inetdomain = {
+const struct domain inetdomain = {
.dom_family = AF_INET,
.dom_name = "internet",
.dom_init = in_init,