diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-02-09 18:23:23 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-02-09 18:23:23 +0000 |
commit | d87c080eaf8c73c4f2f3288adb51fd6a44896f41 (patch) | |
tree | 14f0bbad7287075eae9ae3789ac59b8ed5ddc97b /gas/xmalloc.c | |
parent | ddb393cf893763cfc3bfe7d031c9f8508f5344dc (diff) | |
download | gdb-d87c080eaf8c73c4f2f3288adb51fd6a44896f41.zip gdb-d87c080eaf8c73c4f2f3288adb51fd6a44896f41.tar.gz gdb-d87c080eaf8c73c4f2f3288adb51fd6a44896f41.tar.bz2 |
* as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
* xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.
Diffstat (limited to 'gas/xmalloc.c')
-rw-r--r-- | gas/xmalloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |