From cdefcd82cacf9531ba233db39fce4959166541e4 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Tue, 18 Jul 2000 12:41:55 +0000 Subject: [PATCH] (XtApplyToWidgets): Cast args of lwlib_bcopy. --- lwlib/ChangeLog | 4 ++++ lwlib/lwlib-utils.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index 2dd3655bebf..1dbd6c2b274 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog @@ -1,3 +1,7 @@ +2000-07-18 Dave Love + + * lwlib-utils.c (XtApplyToWidgets): Cast args of lwlib_bcopy. + 2000-06-23 Dave Love * lwlib-Xlw.c (xlw_popup_menu): Cast arg of pop_up_menu. diff --git a/lwlib/lwlib-utils.c b/lwlib/lwlib-utils.c index 75aad733a39..dcc0b42ca54 100644 --- a/lwlib/lwlib-utils.c +++ b/lwlib/lwlib-utils.c @@ -76,7 +76,8 @@ XtApplyToWidgets (w, proc, arg) int nkids = cw->composite.num_children; Widget *kids = (Widget *) malloc (sizeof (Widget) * nkids); int i; - lwlib_bcopy (cw->composite.children, kids, sizeof (Widget) * nkids); + lwlib_bcopy ((char *) cw->composite.children, (char *) kids, + sizeof (Widget) * nkids); for (i = 0; i < nkids; i++) /* This prevent us from using gadgets, why is it here? */ /* if (XtIsWidget (kids [i])) */ -- 2.39.2