From 10886230c53539a656a717ab29490a1c70d2d067 Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 10 Aug 2005 07:08:14 +0000 Subject: Remove the need to forward declare statics by moving them around. --- sys/fs/fdescfs/fdesc_vnops.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'sys/fs/fdescfs') 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, -}; -- cgit v1.1