* lwlib-utils.c (XtCompositeChildren): Likewise.

This commit is contained in:
Paul Eggert 2011-04-16 14:23:30 -07:00
parent 5c5e6a401e
commit b165261a47
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@
* lwlib-Xm.c (make_dialog): Rename local to avoid shadowing.
(make_menu_in_widget): Add cast to avoid warning.
* lwlib-utils.c (XtCompositeChildren): Likewise.
* lwlib.c (EXPLAIN, destroy_one_instance): Avoid "else;".
(first_child) [USE_MOTIF]: Protoize.

View file

@ -129,7 +129,7 @@ XtCompositeChildren (Widget widget, unsigned int *number)
return NULL;
}
n = cw->composite.num_children;
result = (Widget*)XtMalloc (n * sizeof (Widget));
result = (Widget*)(void*)XtMalloc (n * sizeof (Widget));
*number = n;
for (i = 0; i < n; i++)
result [i] = cw->composite.children [i];