Browse Source

* cplus-dem.c [__STDC__]: Make x{m,re}alloc return void*.

gdb-4_18-branch
Jim Kingdon 36 years ago
parent
commit
2cb3be2c94
  1. 6
      gdb/cplus-dem.c

6
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 ();

Loading…
Cancel
Save