freebsd-ports/sysutils/cdrdao/files/patch-dao::ScsiIf-lib.cc
Alexander Leidinger 94afc39b85 Add missing patches, see log of Makefile for more.
Pointy hat to:	netchild
2002-11-13 18:56:34 +00:00

20 lines
773 B
C++

--- dao/ScsiIf-lib.cc.orig Tue Oct 29 19:40:39 2002
+++ dao/ScsiIf-lib.cc Tue Oct 29 20:14:24 2002
@@ -204,7 +204,7 @@
scmd->cdb_len = cmdLen;
if (dataOutLen > 0) {
- if (((unsigned)dataOut % impl_->pageSize_) != 0) {
+ if (((size_t)dataOut % impl_->pageSize_) != 0) {
//message(0, "Use SCSI buffer for data out.");
memcpy(impl_->pageAlignedBuffer_, dataOut, dataOutLen);
scmd->addr = impl_->pageAlignedBuffer_;
@@ -217,7 +217,7 @@
scmd->size = dataOutLen;
}
else if (dataInLen > 0) {
- if (((unsigned)dataIn % impl_->pageSize_) != 0) {
+ if (((size_t)dataIn % impl_->pageSize_) != 0) {
//message(0, "Use SCSI buffer for data in.");
scmd->addr = impl_->pageAlignedBuffer_;
usedPageAlignedBuffer = 1;