diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2014-02-16 11:44:42 -0600 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2014-02-16 11:44:42 -0600 |
commit | 919cc741df53b968e9253dd4fbb9bec8e67be10b (patch) | |
tree | dbc13f19084ee7757a858f662266e3195b0608c9 /libk3bdevice | |
parent | 3dfd149abc593e20f91e0ba1d0a7236a2a450dbf (diff) | |
download | k3b-919cc741df53b968e9253dd4fbb9bec8e67be10b.tar.gz k3b-919cc741df53b968e9253dd4fbb9bec8e67be10b.zip |
Fix unintended renaming
Diffstat (limited to 'libk3bdevice')
-rw-r--r-- | libk3bdevice/k3bdevicemanager.cpp | 4 | ||||
-rw-r--r-- | libk3bdevice/k3bscsicommand_bsd.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libk3bdevice/k3bdevicemanager.cpp b/libk3bdevice/k3bdevicemanager.cpp index 3677f67..611dbb4 100644 --- a/libk3bdevice/k3bdevicemanager.cpp +++ b/libk3bdevice/k3bdevicemanager.cpp @@ -380,7 +380,7 @@ void K3bDevice::DeviceManager::BSDDeviceScan() break; } - if ((ccb.ccb_h.status != CAM_RETQ_CMP) + if ((ccb.ccb_h.status != CAM_REQ_CMP) || ((ccb.cdm.status != CAM_DEV_MATCH_LAST) && (ccb.cdm.status != CAM_DEV_MATCH_MORE))) { k3bDebug() << "(BSDDeviceScan) got CAM error " << ccb.ccb_h.status << ", CDM error %d" << ccb.cdm.status << endl; break; @@ -454,7 +454,7 @@ void K3bDevice::DeviceManager::BSDDeviceScan() } } - } while ((ccb.ccb_h.status == CAM_RETQ_CMP) + } while ((ccb.ccb_h.status == CAM_REQ_CMP) && (ccb.cdm.status == CAM_DEV_MATCH_MORE)); if (need_close) diff --git a/libk3bdevice/k3bscsicommand_bsd.cpp b/libk3bdevice/k3bscsicommand_bsd.cpp index eb7f3a3..a346f4b 100644 --- a/libk3bdevice/k3bscsicommand_bsd.cpp +++ b/libk3bdevice/k3bscsicommand_bsd.cpp @@ -118,7 +118,7 @@ int K3bDevice::ScsiCommand::transport( TransportDirection dir, return result ? result : ret; } - else if ((d->ccb.ccb_h.status & CAM_STATUS_MASK) == CAM_RETQ_CMP) { + else if ((d->ccb.ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP) { if( needToClose ) m_device->close(); m_device->usageUnlock(); @@ -165,7 +165,7 @@ int K3bDevice::ScsiCommand::transport( TransportDirection dir, return -1; } - if ((d->ccb.ccb_h.status&CAM_STATUS_MASK) != CAM_RETQ_CMP) + if ((d->ccb.ccb_h.status&CAM_STATUS_MASK) != CAM_REQ_CMP) { k3bDebug() << "(K3bDevice::ScsiCommand) transport failed (3): " << ret << endl; errno=EIO,-1; |