Code to check if a cooked device was specified was failing even if the
cooked device was opened successfully. Also fix a typo. Fixes second part of PR bin/6883 for Soren S. Jorvang <soren@t.dk>
This commit is contained in:
parent
14fe747212
commit
d3c740d725
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: scsi_sense.c,v 1.1 1998/10/15 21:44:39 thorpej Exp $ */
|
||||
/* $NetBSD: scsi_sense.c,v 1.2 1999/02/24 18:51:39 jwise Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -220,7 +220,7 @@ static const struct {
|
|||
{ 0x3B, 0x0C, "Position Past Beginning Of Medium" },
|
||||
{ 0x3B, 0x0D, "Medium Destination Element Full" },
|
||||
{ 0x3B, 0x0E, "Medium Source Element Empty" },
|
||||
{ 0x3D, 0x00, "Invalid Bits In IDENTFY Message" },
|
||||
{ 0x3D, 0x00, "Invalid Bits In IDENTIFY Message" },
|
||||
{ 0x3E, 0x00, "Logical Unit Has Not Self-Configured Yet" },
|
||||
{ 0x3F, 0x00, "Target Operating Conditions Have Changed" },
|
||||
{ 0x3F, 0x01, "Microcode Has Changed" },
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: scsictl.c,v 1.4 1998/11/12 01:16:09 thorpej Exp $ */
|
||||
/* $NetBSD: scsictl.c,v 1.5 1999/02/24 18:51:39 jwise Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -134,8 +134,8 @@ main(argc, argv)
|
|||
sizeof(dvname_store), 1);
|
||||
if (fd == -1)
|
||||
err(1, "%s", dvname);
|
||||
}
|
||||
err(1, "%s", dvname);
|
||||
} else
|
||||
err(1, "%s", dvname);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue