shithub: libdvdcss

Download patch

ref: d18988c14aad9b88e2aa7b78c1449d9f561f016d
parent: 53bf3a846f2a5e0f14e30ce7e618f3f25d499971
author: Diego Biurrun <diego@biurrun.de>
date: Wed Oct 22 13:49:58 EDT 2014

solaris: Drop no use or single use macros

--- a/src/ioctl.c
+++ b/src/ioctl.c
@@ -1579,8 +1579,7 @@
     rs_cdb->cdb_opaque[ 8 ] = (p_sc->uscsi_buflen >> 8) & 0xff;
     rs_cdb->cdb_opaque[ 9 ] =  p_sc->uscsi_buflen       & 0xff;
     p_sc->uscsi_cdblen = 12;
-
-    USCSI_TIMEOUT( p_sc, 15 );
+    p_sc->uscsi_timeout = 15;
 }
 
 /*****************************************************************************
--- a/src/ioctl.h
+++ b/src/ioctl.h
@@ -57,8 +57,6 @@
  * Common macro, Solaris specific
  *****************************************************************************/
 #if defined( SOLARIS_USCSI )
-#define USCSI_TIMEOUT( SC, TO ) ( (SC)->uscsi_timeout = (TO) )
-#define USCSI_RESID( SC )       ( (SC)->uscsi_resid )
 #define INIT_USCSI( TYPE, SIZE ) \
     struct uscsi_cmd sc = { 0 }; \
     union scsi_cdb rs_cdb; \