diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-06-12 20:48:38 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-06-12 20:48:38 +0000 |
commit | 7652131bee86a4f9b1d6a4a4a383f214fcbeec64 (patch) | |
tree | 18550103bc5d68f2255cbfa41b2ed5008e5dd743 /sys/fs/smbfs/smbfs_vfsops.c | |
parent | 633f506489433804062801a1c55f36e6ea841b67 (diff) | |
download | src-7652131bee86a4f9b1d6a4a4a383f214fcbeec64.tar.gz src-7652131bee86a4f9b1d6a4a4a383f214fcbeec64.zip |
Initialize struct vfsops C99-sparsely.
Submitted by: hmp
Reviewed by: phk
Notes
Notes:
svn path=/head/; revision=116271
Diffstat (limited to 'sys/fs/smbfs/smbfs_vfsops.c')
-rw-r--r-- | sys/fs/smbfs/smbfs_vfsops.c | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c index 753efe8a4f6e..2d8b3ac47180 100644 --- a/sys/fs/smbfs/smbfs_vfsops.c +++ b/sys/fs/smbfs/smbfs_vfsops.c @@ -76,32 +76,25 @@ SYSCTL_INT(_vfs_smbfs, OID_AUTO, debuglevel, CTLFLAG_RW, &smbfs_debuglevel, 0, " static MALLOC_DEFINE(M_SMBFSHASH, "SMBFS hash", "SMBFS hash table"); - -static int smbfs_mount(struct mount *, char *, caddr_t, - struct nameidata *, struct thread *); -static int smbfs_quotactl(struct mount *, int, uid_t, caddr_t, struct thread *); -static int smbfs_root(struct mount *, struct vnode **); -static int smbfs_start(struct mount *, int, struct thread *); -static int smbfs_statfs(struct mount *, struct statfs *, struct thread *); -static int smbfs_unmount(struct mount *, int, struct thread *); -static int smbfs_init(struct vfsconf *vfsp); -static int smbfs_uninit(struct vfsconf *vfsp); +static vfs_init_t smbfs_init; +static vfs_uninit_t smbfs_uninit; +static vfs_mount_t smbfs_mount; +static vfs_start_t smbfs_start; +static vfs_root_t smbfs_root; +static vfs_quotactl_t smbfs_quotactl; +static vfs_statfs_t smbfs_statfs; +static vfs_unmount_t smbfs_unmount; static struct vfsops smbfs_vfsops = { - smbfs_mount, - smbfs_start, - smbfs_unmount, - smbfs_root, - smbfs_quotactl, - smbfs_statfs, - vfs_stdsync, - vfs_stdvget, - vfs_stdfhtovp, /* shouldn't happen */ - vfs_stdcheckexp, - vfs_stdvptofh, /* shouldn't happen */ - smbfs_init, - smbfs_uninit, - vfs_stdextattrctl + .vfs_init = smbfs_init, + .vfs_mount = smbfs_mount, + .vfs_quotactl = smbfs_quotactl, + .vfs_root = smbfs_root, + .vfs_start = smbfs_start, + .vfs_statfs = smbfs_statfs, + .vfs_sync = vfs_stdsync, + .vfs_uninit = smbfs_uninit, + .vfs_unmount = smbfs_unmount, }; |