From 845ebcd1fb896271f3ef321b70c39be70a072402 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 2 Mar 2005 00:39:51 +0000 Subject: with SCSI_IOCTL_SEND_COMMAND, we get our data back in the same buffer as the command we send out, so we have to cast it to 8-bits. I'm amazed this even works; we should think about SG_IO for this stuff at some point. --- isys/isys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'isys/isys.c') diff --git a/isys/isys.c b/isys/isys.c index b41daf854..64c9b577a 100644 --- a/isys/isys.c +++ b/isys/isys.c @@ -1093,9 +1093,9 @@ static PyObject * doIsScsiRemovable(PyObject * s, PyObject * args) { if (inq.cmd[1] & (1 << 7)) { /* XXX check the vendor, if it's DELL, HP, or ADAPTEC it could be an adaptec perc RAID (aacraid) device */ - if ((!strncmp (inq.cmd + 8, "DELL", 4)) - || (!strncmp (inq.cmd + 8, "HP", 2)) - || (!strncmp (inq.cmd + 8, "ADAPTEC", 7))) { + if ((!strncmp ((char *)inq.cmd +8, "DELL", 4)) + || (!strncmp ((char *)inq.cmd + 8, "HP", 2)) + || (!strncmp ((char *)inq.cmd + 8, "ADAPTEC", 7))) { rc = 0; } else rc = 1; -- cgit