Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 222e939bdcae2d84bb5a96b011f77a0a > files > 1

goobox-1.9.2-1mdv2008.0.src.rpm

--- goobox-1.9.2/src/transport.hxx~	2007-08-14 11:34:20.000000000 +0200
+++ goobox-1.9.2/src/transport.hxx	2007-08-28 12:20:10.000000000 +0200
@@ -114,7 +114,7 @@ public:
 		sg_io.mx_sb_len	= sizeof(_sense);
 		sg_io.cmdp	= cgc.cmd;
 		sg_io.sbp	= _sense.u;
-		sg_io.flags	= SG_FLAG_LUN_INHIBIT|SG_FLAG_DIRECT_IO;
+		sg_io.flags	= SG_FLAG_UNUSED_LUN_INHIBIT|SG_FLAG_DIRECT_IO;
 	    }
 #endif
 	}
@@ -149,8 +149,8 @@ public:
 #if !KERNEL_BROKEN
 		if (sg_io.masked_status&CHECK_CONDITION)
 #endif
-		{   CREAM_ON_ERRNO(sg_io.sbp);
-		    ret=ERRCODE(sg_io.sbp);
+		  {   CREAM_ON_ERRNO((unsigned char*) sg_io.sbp);
+		    ret=ERRCODE((unsigned char*) sg_io.sbp);
 		    if (ret==0) ret=-1;
 		}
 	    }