make filesystem vnodeop, specop, fifoop and vnodeopv_* arrays const

This commit is contained in:
jdolecek 2001-01-22 13:32:23 +00:00
parent ecf8569ea6
commit e359cb53f1
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: filecore_vfsops.c,v 1.12 2000/11/27 08:39:41 chs Exp $ */
/* $NetBSD: filecore_vfsops.c,v 1.13 2001/01/22 13:32:23 jdolecek Exp $ */
/*-
* Copyright (c) 1998 Andrew McMurry
@ -59,9 +59,9 @@
#include <filecorefs/filecore_node.h>
#include <filecorefs/filecore_mount.h>
extern struct vnodeopv_desc filecore_vnodeop_opv_desc;
extern const struct vnodeopv_desc filecore_vnodeop_opv_desc;
struct vnodeopv_desc *filecore_vnodeopv_descs[] = {
const struct vnodeopv_desc * const filecore_vnodeopv_descs[] = {
&filecore_vnodeop_opv_desc,
NULL,
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: filecore_vnops.c,v 1.10 2000/11/27 08:39:42 chs Exp $ */
/* $NetBSD: filecore_vnops.c,v 1.11 2001/01/22 13:32:23 jdolecek Exp $ */
/*-
* Copyright (c) 1998 Andrew McMurry
@ -550,7 +550,7 @@ int lease_check __P((void *));
* Global vfs data structures for filecore
*/
int (**filecore_vnodeop_p) __P((void *));
struct vnodeopv_entry_desc filecore_vnodeop_entries[] = {
const struct vnodeopv_entry_desc filecore_vnodeop_entries[] = {
{ &vop_default_desc, vn_default_error },
{ &vop_lookup_desc, filecore_lookup }, /* lookup */
{ &vop_create_desc, filecore_create }, /* create */
@ -599,5 +599,5 @@ struct vnodeopv_entry_desc filecore_vnodeop_entries[] = {
{ &vop_size_desc, genfs_size }, /* size */
{ NULL, NULL }
};
struct vnodeopv_desc filecore_vnodeop_opv_desc =
const struct vnodeopv_desc filecore_vnodeop_opv_desc =
{ &filecore_vnodeop_p, filecore_vnodeop_entries };