From d9ed07695e5080a2e63572e296468f20ef01c9db Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Thu, 14 Dec 1995 20:16:15 +0000 Subject: [PATCH] Included and updated to indirect devswitches so that this compiles again, and added a prototype. --- sys/ufs/mfs/mfs_vfsops.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c index 31318d49b52..af009e636cd 100644 --- a/sys/ufs/mfs/mfs_vfsops.c +++ b/sys/ufs/mfs/mfs_vfsops.c @@ -31,11 +31,12 @@ * SUCH DAMAGE. * * @(#)mfs_vfsops.c 8.4 (Berkeley) 4/16/94 - * $Id: mfs_vfsops.c,v 1.17 1995/12/03 11:17:15 bde Exp $ + * $Id: mfs_vfsops.c,v 1.18 1995/12/14 14:25:03 peter Exp $ */ #include #include +#include #include #include #include @@ -67,6 +68,7 @@ # include /* console IO */ #endif +extern int mfs_imageload __P((dev_t dev, caddr_t addr, int size)); extern int mfs_initminiroot __P((caddr_t base)); caddr_t mfs_rootbase; /* address of mini-root in kernel virtual memory */ @@ -124,7 +126,7 @@ mfs_imageload (dev, addr, size) struct iovec iovec; struct uio uio; - error = (*cdevsw[maj].d_open)(dev, 0, S_IFCHR , (struct proc *)0); + error = (*cdevsw[maj]->d_open)(dev, 0, S_IFCHR , (struct proc *)0); if (error) { printf("mfs_imageload: could not open load device c %d,%d\n", maj, mindev); goto out; @@ -148,7 +150,7 @@ mfs_imageload (dev, addr, size) uio.uio_procp = (struct proc *)0; /* perform the read request */ - error = (*cdevsw[maj].d_read)(dev, &uio, 0); + error = (*cdevsw[maj]->d_read)(dev, &uio, 0); if (error) { printf("mfs_imageload: read failed! (error %d)\n", error); break; @@ -165,7 +167,7 @@ mfs_imageload (dev, addr, size) /* close the driver */ out: - (void)(*cdevsw[maj].d_close)(dev, 0, S_IFCHR, (struct proc *)0); + (void)(*cdevsw[maj]->d_close)(dev, 0, S_IFCHR, (struct proc *)0); return (error); } #endif /* MFS_AUTOLOAD */