mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
* as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
* xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
This commit is contained in:
@ -45,11 +45,11 @@
|
||||
|
||||
#define error as_fatal
|
||||
|
||||
char *
|
||||
PTR
|
||||
xmalloc (n)
|
||||
unsigned long n;
|
||||
{
|
||||
char *retval;
|
||||
PTR retval;
|
||||
|
||||
retval = malloc (n);
|
||||
if (retval == NULL)
|
||||
@ -57,9 +57,9 @@ xmalloc (n)
|
||||
return (retval);
|
||||
}
|
||||
|
||||
char *
|
||||
PTR
|
||||
xrealloc (ptr, n)
|
||||
register char *ptr;
|
||||
register PTR ptr;
|
||||
unsigned long n;
|
||||
{
|
||||
ptr = realloc (ptr, n);
|
||||
|
Reference in New Issue
Block a user