summaryrefslogtreecommitdiffstats
path: root/sys/scsi/od.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/scsi/od.c')
-rw-r--r--sys/scsi/od.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/od.c b/sys/scsi/od.c
index 989483f..9f9b077 100644
--- a/sys/scsi/od.c
+++ b/sys/scsi/od.c
@@ -28,7 +28,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: od.c,v 1.32 1997/09/21 22:03:01 gibbs Exp $
+ * $Id: od.c,v 1.33 1997/12/02 21:06:59 phk Exp $
*/
/*
@@ -701,7 +701,7 @@ od_ioctl(dev_t dev, int cmd, caddr_t addr, int flag, struct proc *p,
default:
error = dsioctl("od", dev, cmd, addr, flag, &od->dk_slices,
odstrategy1, (ds_setgeom_t *)NULL);
- if (error == -1) {
+ if (error == ENOIOCTL) {
if (PARTITION(dev) != RAW_PART) {
error = ENOTTY;
} else {
OpenPOWER on IntegriCloud