* as.h (xmalloc, xrealloc): Declare using PTR rather than char *.

* xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
This commit is contained in:
Ian Lance Taylor
1994-02-09 18:23:23 +00:00
parent ddb393cf89
commit d87c080eaf
2 changed files with 7 additions and 4 deletions

View File

@ -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);