From bb2ee72bdfdb7be9b587f494873a489a2bee1466 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 9 May 1994 23:08:26 +0000 Subject: [PATCH] *** empty log message *** --- lwlib/lwlib-utils.c | 7 +------ lwlib/lwlib.c | 5 +---- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/lwlib/lwlib-utils.c b/lwlib/lwlib-utils.c index c6899b57af7..c966e9645e5 100644 --- a/lwlib/lwlib-utils.c +++ b/lwlib/lwlib-utils.c @@ -17,11 +17,6 @@ You should have received a copy of the GNU General Public License along with GNU Emacs; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include -#include -#include -#include - #include #include #include @@ -68,7 +63,7 @@ XtApplyToWidgets (w, proc, arg) int nkids = cw->composite.num_children; Widget *kids = (Widget *) malloc (sizeof (Widget) * nkids); int i; - memcpy (kids, cw->composite.children, sizeof (Widget) * nkids); + bcopy (cw->composite.children, kids, sizeof (Widget) * nkids); for (i = 0; i < nkids; i++) /* This prevent us from using gadgets, why is it here? */ /* if (XtIsWidget (kids [i])) */ diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c index 4e7e807f80d..b71943337c7 100644 --- a/lwlib/lwlib.c +++ b/lwlib/lwlib.c @@ -21,10 +21,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef __STRICT_BSD__ /* ick */ #endif -#include -#include #include -#include #include #include #include "lwlib-int.h" @@ -77,7 +74,7 @@ static void instanciate_widget_instance (/* widget_instance* instance */); /* utility functions for widget_instance and widget_info */ -static char * +char * safe_strdup (s) char *s; { -- 2.39.5