summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_socket.c
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2020-01-05 13:46:02 +0000
committervisa <visa@openbsd.org>2020-01-05 13:46:02 +0000
commitc02bfb27cf5527eb0816ec39aad4db3ad4345c8c (patch)
tree23c8e2bdc85cbfc1ff30eb9faa8ff5e6466eb15c /sys/kern/sys_socket.c
parentregen (diff)
downloadwireguard-openbsd-c02bfb27cf5527eb0816ec39aad4db3ad4345c8c.tar.xz
wireguard-openbsd-c02bfb27cf5527eb0816ec39aad4db3ad4345c8c.zip
Constify instances of struct fileops.
OK anton@, mpi@, bluhm@
Diffstat (limited to 'sys/kern/sys_socket.c')
-rw-r--r--sys/kern/sys_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c
index 0676d907f32..a8eab48eeb0 100644
--- a/sys/kern/sys_socket.c
+++ b/sys/kern/sys_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_socket.c,v 1.42 2018/11/19 13:15:37 visa Exp $ */
+/* $OpenBSD: sys_socket.c,v 1.43 2020/01/05 13:46:02 visa Exp $ */
/* $NetBSD: sys_socket.c,v 1.13 1995/08/12 23:59:09 mycroft Exp $ */
/*
@@ -48,7 +48,7 @@
#include <net/if.h>
#include <net/route.h>
-struct fileops socketops = {
+const struct fileops socketops = {
.fo_read = soo_read,
.fo_write = soo_write,
.fo_ioctl = soo_ioctl,