Get rid of some useless casts pt. 2

This commit is contained in:
twinaphex 2014-12-15 19:31:17 +01:00
parent 2003d2ec12
commit db304a7e2f

View File

@ -273,7 +273,7 @@ static int action_ok_shader_apply_changes(const char *path,
static int action_ok_cheat_apply_changes(const char *path,
const char *label, unsigned type, size_t idx)
{
cheat_manager_t *cheat = (cheat_manager_t*)driver.menu->cheats;
cheat_manager_t *cheat = driver.menu->cheats;
if (!cheat)
return -1;
@ -1164,7 +1164,7 @@ static int action_start_shader_num_passes(unsigned type, const char *label,
static int action_start_cheat_num_passes(unsigned type, const char *label,
unsigned action)
{
cheat_manager_t *cheat = (cheat_manager_t*)driver.menu->cheats;
cheat_manager_t *cheat = driver.menu->cheats;
if (!cheat)
return -1;
@ -1182,7 +1182,7 @@ static int action_toggle_cheat_num_passes(unsigned type, const char *label,
unsigned action)
{
unsigned new_size = 0;
cheat_manager_t *cheat = (cheat_manager_t*)driver.menu->cheats;
cheat_manager_t *cheat = driver.menu->cheats;
if (!cheat)
return -1;
@ -1862,7 +1862,7 @@ static int deferred_push_core_cheat_options(void *data, void *userdata,
{
unsigned i;
file_list_t *list = (file_list_t*)data;
cheat_manager_t *cheat = (cheat_manager_t*)driver.menu->cheats;
cheat_manager_t *cheat = driver.menu->cheats;
(void)userdata;
(void)type;