lib/widget/dialog.c: cleanup -Wcast-qual warning.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2016-02-20 15:09:10 +00:00 committed by Andrew Borodin
parent a5cd35d11e
commit 68d7f53039

View File

@ -202,7 +202,7 @@ static int
dlg_find_widget_callback (const void *a, const void *b) dlg_find_widget_callback (const void *a, const void *b)
{ {
const Widget *w = CONST_WIDGET (a); const Widget *w = CONST_WIDGET (a);
widget_cb_fn f = (widget_cb_fn) b; const widget_cb_fn f = b;
return (w->callback == f) ? 0 : 1; return (w->callback == f) ? 0 : 1;
} }