diff options
author | Peter Jones <pjones@redhat.com> | 2005-03-02 00:39:51 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2005-03-02 00:39:51 +0000 |
commit | 845ebcd1fb896271f3ef321b70c39be70a072402 (patch) | |
tree | de1246a1b7d6cba5e60f389a1cdfb56fd7e037ed /isys/isys.c | |
parent | b247f508c6d2e47f6ffcf7b0561c3479bae77093 (diff) | |
download | anaconda-845ebcd1fb896271f3ef321b70c39be70a072402.tar.gz anaconda-845ebcd1fb896271f3ef321b70c39be70a072402.tar.xz anaconda-845ebcd1fb896271f3ef321b70c39be70a072402.zip |
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.
Diffstat (limited to 'isys/isys.c')
-rw-r--r-- | isys/isys.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |