summaryrefslogtreecommitdiff
path: root/misc/udfclient/patches/patch-ab
blob: 49ee6bcaa900dc8db65c61126b85b3a166acd814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-ab,v 1.3 2003/10/27 04:21:36 reinoud Exp $

--- scsilib.h.orig	2003-10-27 04:01:06.000000000 +0100
+++ scsilib.h
@@ -45,7 +45,7 @@
 
 
 #define SCSI_CMD_LEN  12
-typedef uint8_t scsicmd[SCSI_CMD_LEN];
+typedef unsigned char scsicmd[SCSI_CMD_LEN];
 
 
 #include "scsilib_machdep.h"
$NetBSD: patch-ab,v 1.3 2003/10/27 04:21:36 reinoud Exp $

--- scsi_subr.c.orig	2003-10-27 04:02:39.000000000 +0100
+++ scsi_subr.c
@@ -251,7 +251,7 @@ scsi_mode_select(fd, byte2, buf, len)
 
 	bzero(cmd, SCSI_CMD_LEN);
 	cmd[ 0] = 0x15;			/* MODE SELECT			*/
-	cmd[ 1] = SMS_PF | byte2;	/* SCSI-2 page format select	*/
+	cmd[ 1] = 0x10 | byte2;		/* SCSI-2 page format select	*/
 	cmd[ 4] = len;			/* length of page settings	*/
 	cmd[ 5] = 0;			/* control			*/