comparison lwlib/lwlib-utils.c @ 30279:3f00bdb24c1f

(XtApplyToWidgets): Cast args of lwlib_bcopy.
author Dave Love <fx@gnu.org>
date Tue, 18 Jul 2000 12:41:30 +0000
parents f4e5f2c2900e
children 7fb1caba0f51
comparison
equal deleted inserted replaced
30278:88f980a73f48 30279:3f00bdb24c1f
74 the procedure might add/delete elements, which would lose badly. 74 the procedure might add/delete elements, which would lose badly.
75 */ 75 */
76 int nkids = cw->composite.num_children; 76 int nkids = cw->composite.num_children;
77 Widget *kids = (Widget *) malloc (sizeof (Widget) * nkids); 77 Widget *kids = (Widget *) malloc (sizeof (Widget) * nkids);
78 int i; 78 int i;
79 lwlib_bcopy (cw->composite.children, kids, sizeof (Widget) * nkids); 79 lwlib_bcopy ((char *) cw->composite.children, (char *) kids,
80 sizeof (Widget) * nkids);
80 for (i = 0; i < nkids; i++) 81 for (i = 0; i < nkids; i++)
81 /* This prevent us from using gadgets, why is it here? */ 82 /* This prevent us from using gadgets, why is it here? */
82 /* if (XtIsWidget (kids [i])) */ 83 /* if (XtIsWidget (kids [i])) */
83 { 84 {
84 /* do the kiddies first in case we're destroying */ 85 /* do the kiddies first in case we're destroying */