--- dvd+rw-tools/transport.hxx 2006-09-23 04:29:07.000000000 -0700 +++ dvd+rw-tools/transport.hxx.new 2007-09-18 20:17:41.000000000 -0700 @@ -284,9 +284,9 @@ public: #if !KERNEL_BROKEN if (sg_io.masked_status&CHECK_CONDITION) #endif - { ret = ERRCODE(sg_io.sbp); + { ret = ERRCODE((unsigned char *)sg_io.sbp); if (ret==0) ret=-1; - else CREAM_ON_ERRNO(sg_io.sbp); + else CREAM_ON_ERRNO((unsigned char *)sg_io.sbp); } } return ret;