From 2cb3be2c94583077d7555d1934888832ab8481ce Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 3 May 1991 06:03:54 +0000 Subject: [PATCH] * cplus-dem.c [__STDC__]: Make x{m,re}alloc return void*. --- gdb/cplus-dem.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gdb/cplus-dem.c b/gdb/cplus-dem.c index cbb79c46691..750bdaeb664 100644 --- a/gdb/cplus-dem.c +++ b/gdb/cplus-dem.c @@ -90,8 +90,10 @@ extern char *cplus_demangle (); #endif #ifdef __STDC__ -extern char *xmalloc (int); -extern char *xrealloc (char *, int); +/* GDB prototypes these as void* in defs.h, so we better too, at least + as long as we're including defs.h. */ +extern void *xmalloc (int); +extern void *xrealloc (char *, int); extern void free (char *); #else extern char *xmalloc (); -- 2.30.2