Commit 4e568433 authored by Marvin Scholz's avatar Marvin Scholz

mmc_device_darwin: Fix discarding const qualifier

parent 8371e918
......@@ -114,7 +114,10 @@ int device_send_cmd(MMCDEV *mmc, const uint8_t *cmd, uint8_t *buf, size_t tx, si
direction = kSCSIDataTransfer_NoDataTransfer;
}
rc = (*task)->SetCommandDescriptorBlock (task, cmd, 16);
SCSICommandDescriptorBlock cdb = {0};
memcpy(cdb, cmd, sizeof(cdb));
rc = (*task)->SetCommandDescriptorBlock (task, cdb, kSCSICDBSize_16Byte);
if (kIOReturnSuccess != rc) {
BD_DEBUG(DBG_MMC, "Error setting SCSI command\n");
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment