* lwlib-utils.c (XtCompositeChildren): Likewise.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 21:23:30 +0000 (14:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 21:23:30 +0000 (14:23 -0700)
lwlib/ChangeLog
lwlib/lwlib-utils.c

index fd9b10d..91f7953 100644 (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.
index c590270..7a0dd1b 100644 (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];