* src/widget.c (buttonbar_set_label): Fix `comparison of distinct pointer types

lacks a cast' gcc warning.
This commit is contained in:
Pavel Tsekov 2006-02-06 15:42:30 +00:00
parent d39462622b
commit 3652302618
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-02-06 Pavel Tsekov <ptsekov@gmx.net>
* widget.c (buttonbar_set_label): Fix `comparison of distinct
pointer types lacks a cast' gcc warning.
2006-02-05 Pavel Tsekov <ptsekov@gmx.net> 2006-02-05 Pavel Tsekov <ptsekov@gmx.net>
* hotlist.c (hotlist_has_dot_dot): Define new global * hotlist.c (hotlist_has_dot_dot): Define new global

View File

@ -2418,14 +2418,14 @@ buttonbar_set_label_data (Dlg_head *h, int idx, const char *text, buttonbarfn cb
} }
void void
buttonbar_set_label (Dlg_head *h, int idx, const char *text, void (*cback) (void)) buttonbar_set_label (Dlg_head *h, int idx, const char *text, voidfn cback)
{ {
WButtonBar *bb = find_buttonbar (h); WButtonBar *bb = find_buttonbar (h);
if (!bb) if (!bb)
return; return;
assert (cback != (buttonbarfn) 0); assert (cback != (voidfn) 0);
set_label_text (bb, idx, text); set_label_text (bb, idx, text);
bb->labels[idx - 1].tag = BBFUNC_VOID; bb->labels[idx - 1].tag = BBFUNC_VOID;
bb->labels[idx - 1].u.fn_void = cback; bb->labels[idx - 1].u.fn_void = cback;