shithub: libdvdcss

Download patch

ref: fde3c32f399a0b4b98a68eb9e95b8eaed76732dd
parent: 764ed0bfb76fb3b15c9c1f677e85d74df3a025d4
author: Diego Biurrun <[email protected]>
date: Mon Oct 20 07:59:12 EDT 2014

Eliminate some pointless void* casts

--- a/src/device.c
+++ b/src/device.c
@@ -635,7 +635,7 @@
                 }
                 else
                 {
-                    free( (void*) fd );
+                    free( fd );
                     FreeLibrary( hASPI );
                     print_error( dvdcss,"this is not a CD-ROM drive" );
                     return -1;
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -632,7 +632,7 @@
                 /* or fail completely? return 0; */
                 break;
             }
-            p_buffer = (void *) ((uint8_t *)p_buffer + DVDCSS_BLOCK_SIZE);
+            p_buffer = (uint8_t *)p_buffer + DVDCSS_BLOCK_SIZE;
         }
     }
     else
@@ -642,7 +642,7 @@
         {
             _dvdcss_unscramble( dvdcss->css.p_title_key, p_buffer );
             ((uint8_t*)p_buffer)[0x14] &= 0x8f;
-            p_buffer = (void *) ((uint8_t *)p_buffer + DVDCSS_BLOCK_SIZE);
+            p_buffer = (uint8_t *)p_buffer + DVDCSS_BLOCK_SIZE;
         }
     }