[libdvdcss-devel] [PATCH 19/25] Eliminate some pointless void* casts
Diego Biurrun
diego at biurrun.de
Mon Oct 20 11:59:12 CEST 2014
---
src/device.c | 2 +-
src/libdvdcss.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/device.c b/src/device.c
index 871572c..77c0fa5 100644
--- a/src/device.c
+++ b/src/device.c
@@ -635,7 +635,7 @@ static int aspi_open( dvdcss_t dvdcss, char const * psz_device )
}
else
{
- free( (void*) fd );
+ free( fd );
FreeLibrary( hASPI );
print_error( dvdcss,"this is not a CD-ROM drive" );
return -1;
diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 4e77f48..a79e5c3 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -632,7 +632,7 @@ LIBDVDCSS_EXPORT int dvdcss_read ( dvdcss_t dvdcss, void *p_buffer,
/* 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 @@ LIBDVDCSS_EXPORT int dvdcss_read ( dvdcss_t dvdcss, void *p_buffer,
{
_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;
}
}
--
1.9.1
More information about the libdvdcss-devel
mailing list