From ccdaabfa38ba7ef958cd9021ecd0f472a339ec50 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 12 Sep 2013 12:15:00 +0100 Subject: Pass generic userdata --- amiga/menu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'amiga/menu.c') diff --git a/amiga/menu.c b/amiga/menu.c index 6c67b0424..e75e03791 100644 --- a/amiga/menu.c +++ b/amiga/menu.c @@ -535,10 +535,11 @@ void ami_menu_arexx_scan(struct gui_window_2 *gwin) gwin->menu[item].nm_Label = NULL; } -static bool ami_menu_hotlist_add(struct gui_window_2 *gw, int level, int item, const char *title, nsurl *url, bool is_folder) +static bool ami_menu_hotlist_add(void *userdata, int level, int item, const char *title, nsurl *url, bool is_folder) { UBYTE type; char *icon; + struct gui_window_2 *gw = (struct gui_window_2 *)userdata; if(item >= AMI_MENU_HOTLIST_MAX) return false; @@ -571,7 +572,7 @@ static bool ami_menu_hotlist_add(struct gui_window_2 *gw, int level, int item, c static nserror ami_menu_scan(struct tree *tree, struct gui_window_2 *gwin) { - return ami_hotlist_scan(gwin, AMI_MENU_HOTLIST, messages_get("HotlistMenu"), ami_menu_hotlist_add); + return ami_hotlist_scan((void *)gwin, AMI_MENU_HOTLIST, messages_get("HotlistMenu"), ami_menu_hotlist_add); } void ami_menu_update_checked(struct gui_window_2 *gwin) -- cgit v1.2.3