summaryrefslogtreecommitdiffstats
path: root/sys/fs/fdescfs
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2005-08-10 07:08:14 +0000
committerobrien <obrien@FreeBSD.org>2005-08-10 07:08:14 +0000
commit10886230c53539a656a717ab29490a1c70d2d067 (patch)
tree35f08188ba281744ccef0f94e329ed81d25c8733 /sys/fs/fdescfs
parenta76eb9e4d13cf47aeb9ea9514ccac386f01b76fc (diff)
downloadFreeBSD-src-10886230c53539a656a717ab29490a1c70d2d067.zip
FreeBSD-src-10886230c53539a656a717ab29490a1c70d2d067.tar.gz
Remove the need to forward declare statics by moving them around.
Diffstat (limited to 'sys/fs/fdescfs')
-rw-r--r--sys/fs/fdescfs/fdesc_vnops.c28
1 files changed, 13 insertions, 15 deletions
diff --git a/sys/fs/fdescfs/fdesc_vnops.c b/sys/fs/fdescfs/fdesc_vnops.c
index 6134426..7b2dd53 100644
--- a/sys/fs/fdescfs/fdesc_vnops.c
+++ b/sys/fs/fdescfs/fdesc_vnops.c
@@ -74,7 +74,19 @@ static vop_readdir_t fdesc_readdir;
static vop_reclaim_t fdesc_reclaim;
static vop_setattr_t fdesc_setattr;
-extern struct vop_vector fdesc_vnodeops;
+static struct vop_vector fdesc_vnodeops = {
+ .vop_default = &default_vnodeops,
+
+ .vop_access = VOP_NULL,
+ .vop_getattr = fdesc_getattr,
+ .vop_inactive = fdesc_inactive,
+ .vop_lookup = fdesc_lookup,
+ .vop_open = fdesc_open,
+ .vop_pathconf = vop_stdpathconf,
+ .vop_readdir = fdesc_readdir,
+ .vop_reclaim = fdesc_reclaim,
+ .vop_setattr = fdesc_setattr,
+};
/*
* Initialise cache headers
@@ -517,17 +529,3 @@ fdesc_reclaim(ap)
return (0);
}
-
-static struct vop_vector fdesc_vnodeops = {
- .vop_default = &default_vnodeops,
-
- .vop_access = VOP_NULL,
- .vop_getattr = fdesc_getattr,
- .vop_inactive = fdesc_inactive,
- .vop_lookup = fdesc_lookup,
- .vop_open = fdesc_open,
- .vop_pathconf = vop_stdpathconf,
- .vop_readdir = fdesc_readdir,
- .vop_reclaim = fdesc_reclaim,
- .vop_setattr = fdesc_setattr,
-};
OpenPOWER on IntegriCloud