From fbff29663825d9ea51712b237125ba9940d146cb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 13 Feb 2015 20:30:06 +0100 Subject: [PATCH] (RMenu) Fixes --- menu/drivers/rmenu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/menu/drivers/rmenu.c b/menu/drivers/rmenu.c index e92c22bf43..471dbb1dfd 100644 --- a/menu/drivers/rmenu.c +++ b/menu/drivers/rmenu.c @@ -71,7 +71,7 @@ static int rmenu_entry_iterate(unsigned action) menu_handle_t *menu = menu_driver_resolve(); if (!menu) - return; + return -1; cbs = (menu_file_list_cbs_t*)menu_list_get_actiondata_at_offset( menu->menu_list->selection_buf, menu->selection_ptr); @@ -325,7 +325,7 @@ static void rmenu_wallpaper_set_defaults(char *menu_bg, size_t sizeof_menu_bg) fill_pathname_join(menu_bg, menu_bg, "main_menu.png", sizeof_menu_bg); } -static void rmenu_context_reset(void *data) +static void rmenu_context_reset(void) { char menu_bg[PATH_MAX_LENGTH]; menu_handle_t *menu = menu_driver_resolve(); @@ -364,7 +364,7 @@ static void *rmenu_init(void) return menu; } -static void rmenu_context_destroy(void *data) +static void rmenu_context_destroy(void) { texture_image_free(menu_texture); }