From 71d56aaf502cdcac2cfd3eaf0682dda8e5e3d211 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 28 Jan 1996 09:56:04 +0000 Subject: Minor but fatal spelling error when merging my code into -current. Also declared worminit() to avoid a compiler warning. Seems that the other SCSI drivers don't declare XXinit() yet, so perhaps we'd also create a typedef for these func's. --- sys/scsi/worm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/scsi/worm.c') diff --git a/sys/scsi/worm.c b/sys/scsi/worm.c index 4eb8932..f241b1d 100644 --- a/sys/scsi/worm.c +++ b/sys/scsi/worm.c @@ -43,7 +43,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: worm.c,v 1.19 1996/01/20 15:27:36 joerg Exp $ + * $Id: worm.c,v 1.20 1996/01/27 17:48:12 joerg Exp $ */ /* XXX This is PRELIMINARY. @@ -144,6 +144,7 @@ static d_open_t wormopen; static d_close_t wormclose; static d_ioctl_t wormioctl; static d_strategy_t wormstrategy; +static void worminit (void); #define CDEV_MAJOR 62 static struct cdevsw worm_cdevsw = @@ -153,7 +154,8 @@ static struct cdevsw worm_cdevsw = static int -wormunit(dev_t dev) { +wormunit(dev_t dev) +{ return (minor(dev) & ~(SCSI_FIXED_MASK|SCSI_CONTROL_MASK)); } @@ -493,7 +495,7 @@ worm_open(dev_t dev, int flags, int fmt, struct proc *p, } static int -worm_close(dev_t dev, int flag, int fmt, struct proc *p, +worm_close(dev_t dev, int flags, int fmt, struct proc *p, struct scsi_link *sc_link) { errval error; -- cgit v1.1