* menu.c (destroy_menu): Fix warnings.

* view.c (view_adjust_size): Likewise.
        * widget.c (find_buttonbar): Likewise.
This commit is contained in:
Andrew V. Samoilov 2004-09-02 20:14:12 +00:00
parent 3fe957aef4
commit d3e4fcb5b0
4 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2004-09-03 Pavel S. Shirshov <pavelsh@mail.ru>
* menu.c (destroy_menu): Fix warnings.
* view.c (view_adjust_size): Likewise.
* widget.c (find_buttonbar): Likewise.
Based on patch from Jakub Jelinek <jakub@redhat.com>
2004-09-02 Roland Illig <roland.illig@gmx.de>
* color.c (try_alloc_color_pair (ncurses)): Added const qualifier

View File

@ -526,8 +526,8 @@ menubar_arrange(WMenu* menubar)
void
destroy_menu (Menu *menu)
{
g_free (menu->name);
g_free (menu->help_node);
g_free ((char *) menu->name);
g_free ((char *) menu->help_node);
g_free (menu);
}

View File

@ -2604,7 +2604,7 @@ view_adjust_size (Dlg_head *h)
WButtonBar *bar;
/* Look up the viewer and the buttonbar, we assume only two widgets here */
view = (WView *) find_widget_type (h, view_callback);
view = (WView *) find_widget_type (h, (callback_fn) view_callback);
bar = find_buttonbar (h);
widget_set_size (&view->widget, 0, 0, LINES - 1, COLS);
widget_set_size (&bar->widget, LINES - 1, 0, 1, COLS);

View File

@ -2318,7 +2318,7 @@ find_buttonbar (Dlg_head *h)
{
WButtonBar *bb;
bb = (WButtonBar *) find_widget_type (h, buttonbar_callback);
bb = (WButtonBar *) find_widget_type (h, (callback_fn) buttonbar_callback);
return bb;
}