diff options
| author | 2020-01-20 23:21:55 +0000 | |
|---|---|---|
| committer | 2020-01-20 23:21:55 +0000 | |
| commit | 2d6b9e38f30a31b6aa3a85df5a94059bc694a80e (patch) | |
| tree | bf66fc57928e28f67edf3feb1574130fd0fde94d /sys/kern/vfs_sync.c | |
| parent | remove esp at pcmcia attachment. it doesn't even compile. (diff) | |
| download | wireguard-openbsd-2d6b9e38f30a31b6aa3a85df5a94059bc694a80e.tar.xz wireguard-openbsd-2d6b9e38f30a31b6aa3a85df5a94059bc694a80e.zip | |
struct vops is not modified during runtime so use const which moves each
into read-only data segment.
OK deraadt@ tedu@
Diffstat (limited to 'sys/kern/vfs_sync.c')
| -rw-r--r-- | sys/kern/vfs_sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_sync.c b/sys/kern/vfs_sync.c index d871f111836..9a9231a3eee 100644 --- a/sys/kern/vfs_sync.c +++ b/sys/kern/vfs_sync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_sync.c,v 1.62 2020/01/16 16:35:04 mpi Exp $ */ +/* $OpenBSD: vfs_sync.c,v 1.63 2020/01/20 23:21:56 claudio Exp $ */ /* * Portions of this code are: @@ -256,7 +256,7 @@ int sync_fsync(void *); int sync_inactive(void *); int sync_print(void *); -struct vops sync_vops = { +const struct vops sync_vops = { .vop_close = nullop, .vop_fsync = sync_fsync, .vop_inactive = sync_inactive, |
