summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_pipe.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_pipe.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_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index da8a96e5dd4..8ad10e8b461 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_pipe.c,v 1.108 2020/01/04 09:38:27 anton Exp $ */
+/* $OpenBSD: sys_pipe.c,v 1.109 2020/01/05 13:46:02 visa Exp $ */
/*
* Copyright (c) 1996 John S. Dyson
@@ -60,7 +60,7 @@ int pipe_kqfilter(struct file *fp, struct knote *kn);
int pipe_ioctl(struct file *, u_long, caddr_t, struct proc *);
int pipe_stat(struct file *fp, struct stat *ub, struct proc *p);
-static struct fileops pipeops = {
+static const struct fileops pipeops = {
.fo_read = pipe_read,
.fo_write = pipe_write,
.fo_ioctl = pipe_ioctl,