summaryrefslogtreecommitdiffstats
path: root/sys/scsi/worm.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-01-28 09:56:04 +0000
committerjoerg <joerg@FreeBSD.org>1996-01-28 09:56:04 +0000
commit71d56aaf502cdcac2cfd3eaf0682dda8e5e3d211 (patch)
tree953c301e1513767785886b2c3013c0eba253713a /sys/scsi/worm.c
parent05e0fabe8835ead9b820e2c2b42d3e63e7a8f665 (diff)
downloadFreeBSD-src-71d56aaf502cdcac2cfd3eaf0682dda8e5e3d211.zip
FreeBSD-src-71d56aaf502cdcac2cfd3eaf0682dda8e5e3d211.tar.gz
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.
Diffstat (limited to 'sys/scsi/worm.c')
-rw-r--r--sys/scsi/worm.c8
1 files changed, 5 insertions, 3 deletions
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;
OpenPOWER on IntegriCloud