Commit b165261a authored by Paul Eggert's avatar Paul Eggert

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

parent 5c5e6a40
......@@ -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.
......
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment