From d87c080eaf8c73c4f2f3288adb51fd6a44896f41 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 9 Feb 1994 18:23:23 +0000 Subject: * as.h (xmalloc, xrealloc): Declare using PTR rather than char *. * xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *. --- gas/xmalloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gas/xmalloc.c') diff --git a/gas/xmalloc.c b/gas/xmalloc.c index 8b39ee5..bdf083d 100644 --- a/gas/xmalloc.c +++ b/gas/xmalloc.c @@ -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); -- cgit v1.1