summaryrefslogtreecommitdiff
path: root/sys/scsi/ch.c
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2010-07-22 15:59:48 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2010-07-22 15:59:48 +0000
commitfe06463b6b590b8ac4b2a3b91562a89600962875 (patch)
treeee6cb2849c008eec8d09c3dca9c27f9cd35c0e89 /sys/scsi/ch.c
parent469cd4460afec9fd9ea621a290d6a5d34e7bad1c (diff)
Fix a few more scsi_scsi_cmd() removal regressions, caught by
-Wuninitialized. Silly typo in my first diff noticed by oga@ and krw@; ok krw@
Diffstat (limited to 'sys/scsi/ch.c')
-rw-r--r--sys/scsi/ch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c
index 0d6a1a435eb..82387004867 100644
--- a/sys/scsi/ch.c
+++ b/sys/scsi/ch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ch.c,v 1.41 2010/07/22 00:31:06 krw Exp $ */
+/* $OpenBSD: ch.c,v 1.42 2010/07/22 15:59:47 matthew Exp $ */
/* $NetBSD: ch.c,v 1.26 1997/02/21 22:06:52 thorpej Exp $ */
/*
@@ -385,6 +385,7 @@ ch_move(sc, cm)
xs->retries = CHRETRIES;
xs->timeout = 100000;
+ cmd = (struct scsi_move_medium *)xs->cmd;
_lto2b(sc->sc_picker, cmd->tea);
_lto2b(fromelem, cmd->src);
_lto2b(toelem, cmd->dst);
@@ -445,6 +446,7 @@ ch_exchange(sc, ce)
xs->retries = CHRETRIES;
xs->timeout = 100000;
+ cmd = (struct scsi_exchange_medium *)xs->cmd;
_lto2b(sc->sc_picker, cmd->tea);
_lto2b(src, cmd->src);
_lto2b(dst1, cmd->fdst);
@@ -494,6 +496,7 @@ ch_position(sc, cp)
xs->retries = CHRETRIES;
xs->timeout = 100000;
+ cmd = (struct scsi_position_to_element *)xs->cmd;
_lto2b(sc->sc_picker, cmd->tea);
_lto2b(dst, cmd->dst);
if (cp->cp_flags & CP_INVERT)