1d5d8c4e8f
use that result.
25 lines
654 B
Text
25 lines
654 B
Text
$NetBSD: patch-ac,v 1.1 2003/09/19 17:49:17 mycroft Exp $
|
|
|
|
--- cdrecord/scsi_cdr.c.orig 2003-06-01 16:10:01.000000000 +0000
|
|
+++ cdrecord/scsi_cdr.c 2003-09-01 03:10:45.000000000 +0000
|
|
@@ -263,6 +263,12 @@
|
|
|
|
EXPORT int request_sense(SCSI *scgp)
|
|
{
|
|
+
|
|
+ #ifdef __NetBSD__
|
|
+ /* request sense already done by kernel */
|
|
+ scg_prsense((Uchar *)scgp->scmd->u_sense.cmd_sense,
|
|
+ scgp->scmd->sense_count);
|
|
+ #else
|
|
char sensebuf[CCS_SENSE_LEN];
|
|
register struct scg_cmd *scmd = scgp->scmd;
|
|
|
|
@@ -282,6 +288,7 @@
|
|
if (scg_cmd(scgp) < 0)
|
|
return (-1);
|
|
scg_prsense((Uchar *)sensebuf, CCS_SENSE_LEN - scg_getresid(scgp));
|
|
+#endif
|
|
return (0);
|
|
}
|
|
|