summaryrefslogtreecommitdiff
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2020-01-05 13:46:03 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2020-01-05 13:46:03 +0000
commitac5babb1b66005ac7ddfaaa75f9be66860a62156 (patch)
tree45e7f29e5e740fd0f97c48a3cea5fa1ec1a4be56 /sys/kern/sys_pipe.c
parent6b98f1c92992bbd8cf36217a795cfdf0ec837ff0 (diff)
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,