aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-05-03 06:03:54 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-05-03 06:03:54 +0000
commit2cb3be2c94583077d7555d1934888832ab8481ce (patch)
treeab20578b11c1cd95b7a707e1b763a74a284f4df1 /gdb
parent63a463b149753764549a935092ecceec81e666e5 (diff)
downloadgdb-2cb3be2c94583077d7555d1934888832ab8481ce.zip
gdb-2cb3be2c94583077d7555d1934888832ab8481ce.tar.gz
gdb-2cb3be2c94583077d7555d1934888832ab8481ce.tar.bz2
* cplus-dem.c [__STDC__]: Make x{m,re}alloc return void*.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/cplus-dem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/cplus-dem.c b/gdb/cplus-dem.c
index cbb79c4..750bdae 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 ();