patch-2.0.13 linux/drivers/scsi/scsi_ioctl.c
Next file: linux/drivers/scsi/sr.c
Previous file: linux/drivers/scsi/ncr53c8xx.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Tue Aug 13 09:27:47 1996
- Orig file:
v2.0.12/linux/drivers/scsi/scsi_ioctl.c
- Orig date:
Sat Jun 8 11:41:46 1996
diff -u --recursive --new-file v2.0.12/linux/drivers/scsi/scsi_ioctl.c linux/drivers/scsi/scsi_ioctl.c
@@ -165,7 +165,7 @@
static int ioctl_command(Scsi_Device *dev, void *buffer)
{
char * buf;
- char cmd[12];
+ unsigned char cmd[12];
char * cmd_in;
Scsi_Cmnd * SCpnt;
unsigned char opcode;
@@ -187,10 +187,10 @@
* The structure that we are passed should look like:
*
* struct sdata{
- * int inlen;
- * int outlen;
- * char cmd[]; # However many bytes are used for cmd.
- * char data[];
+ * unsigned int inlen;
+ * unsigned int outlen;
+ * unsigned char cmd[]; # However many bytes are used for cmd.
+ * unsigned char data[];
*/
inlen = get_user((unsigned int *) buffer);
outlen = get_user( ((unsigned int *) buffer) + 1);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov