diff options
| author | aymeric <aymeric@NetBSD.org> | 2001-11-05 20:49:47 +0000 |
|---|---|---|
| committer | aymeric <aymeric@NetBSD.org> | 2001-11-05 20:49:47 +0000 |
| commit | 589ec775e40b203147c695df2f014cbef8d203cb (patch) | |
| tree | aebf407445b6aa058c8509d4aa4b4e03a1d55393 /gnu | |
| parent | e994d009cd353a74423ec9800e95c3e08f0b724c (diff) | |
Make xmalloc() and xrealloc()'s definitions match their prototypes in
scan.h
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/dist/gcc/cplus-dem.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gnu/dist/gcc/cplus-dem.c b/gnu/dist/gcc/cplus-dem.c index 4200f48c381..53b463ef37c 100644 --- a/gnu/dist/gcc/cplus-dem.c +++ b/gnu/dist/gcc/cplus-dem.c @@ -4396,22 +4396,22 @@ fatal (str) exit (1); } -PTR +char * xmalloc (size) - size_t size; + unsigned size; { - register PTR value = (PTR) malloc (size); + register char *value = (char *) malloc (size); if (value == 0) fatal ("virtual memory exhausted"); return value; } -PTR +char * xrealloc (ptr, size) - PTR ptr; - size_t size; + char *ptr; + unsigned size; { - register PTR value = (PTR) realloc (ptr, size); + register char *value = (char *) realloc (ptr, size); if (value == 0) fatal ("virtual memory exhausted"); return value; |
