diff options
author | bde <bde@FreeBSD.org> | 1995-12-14 20:16:15 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-12-14 20:16:15 +0000 |
commit | a8e8429b6c1bf8b8deb6a5fd9c74589e6ab6b4ac (patch) | |
tree | e5b76f1661f6e72c0d6d114e4db2149e2a80d181 /sys/ufs/mfs/mfs_vfsops.c | |
parent | 0755e57c15ebdc556978aaa281b5819c2a999e19 (diff) | |
download | FreeBSD-src-a8e8429b6c1bf8b8deb6a5fd9c74589e6ab6b4ac.zip FreeBSD-src-a8e8429b6c1bf8b8deb6a5fd9c74589e6ab6b4ac.tar.gz |
Included <sys/conf.h> and updated to indirect devswitches so that
this compiles again, and added a prototype.
Diffstat (limited to 'sys/ufs/mfs/mfs_vfsops.c')
-rw-r--r-- | sys/ufs/mfs/mfs_vfsops.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c index 31318d4..af009e6 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 <sys/param.h> #include <sys/systm.h> +#include <sys/conf.h> #include <sys/time.h> #include <sys/kernel.h> #include <sys/proc.h> @@ -67,6 +68,7 @@ # include <i386/i386/cons.h> /* 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 */ |