diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2020-01-20 23:21:58 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2020-01-20 23:21:58 +0000 |
commit | 72bbc166dfdddaa40aaa7591458bdbeafd8256f2 (patch) | |
tree | 6ebef5167051e75989a6aab75ad8825ff84e7054 /sys/ufs/mfs/mfs_extern.h | |
parent | 69afc17e65e0a80c075a1bfb4a1f84f5614383e4 (diff) |
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/ufs/mfs/mfs_extern.h')
-rw-r--r-- | sys/ufs/mfs/mfs_extern.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/mfs/mfs_extern.h b/sys/ufs/mfs/mfs_extern.h index 67b2b4dae61..a662a6787ef 100644 --- a/sys/ufs/mfs/mfs_extern.h +++ b/sys/ufs/mfs/mfs_extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mfs_extern.h,v 1.19 2016/04/26 18:37:03 natano Exp $ */ +/* $OpenBSD: mfs_extern.h,v 1.20 2020/01/20 23:21:57 claudio Exp $ */ /* $NetBSD: mfs_extern.h,v 1.4 1996/02/09 22:31:27 christos Exp $ */ /*- @@ -43,7 +43,7 @@ struct vfsconf; struct mbuf; struct mfsnode; -extern struct vops mfs_vops; +extern const struct vops mfs_vops; /* mfs_vfsops.c */ int mfs_mount(struct mount *, const char *, void *, struct nameidata *, |