From: Christian Heller Date: Mon, 10 Mar 2014 15:17:04 +0000 (+0100) Subject: Make get_drawfunc_by_char() return a proper function pointer. X-Git-Tag: tce~823 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/reset_cookie?a=commitdiff_plain;h=3a31142e9b3428ecaac3387ab81c1f9b7490051e;p=plomrogue Make get_drawfunc_by_char() return a proper function pointer. --- diff --git a/src/client/windows.c b/src/client/windows.c index e15a65a..a9bea11 100644 --- a/src/client/windows.c +++ b/src/client/windows.c @@ -51,7 +51,7 @@ static void init_win_size_from_winconf_and_v_screen_size(char id); * match_func() is just a little helper to it. */ static uint8_t match_func(char c, void (** f) (), char c_m, void (* f_m) ()); -static void * get_drawfunc_by_char(char c); +static void (* get_drawfunc_by_char(char c)) (); /* Write "win"'s size back to .target_(height/width) as per .target_*_type. */ static void set_win_target_size(struct Win * win); @@ -170,7 +170,7 @@ static uint8_t match_func(char c, void (** f) (), char c_m, void (* f_m) ()) -static void * get_drawfunc_by_char(char c) +static void (* get_drawfunc_by_char(char c)) () { void (* f) (struct Win *) = NULL; if ( match_func(c, &f, 'c', draw_win_inventory)