Commit fde3c32f authored by Diego Biurrun's avatar Diego Biurrun
Browse files

Eliminate some pointless void* casts

parent 764ed0bf
......@@ -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;
......
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment