diff options
author | Alan Modra <amodra@gmail.com> | 2022-05-13 16:43:15 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-05-13 16:43:15 +0930 |
commit | 31b15688c414c7caf957be63d2914faafa1b9dda (patch) | |
tree | e9d162e81034cf547a59a312c82a43df5b9f0a29 /libiberty/xmalloc.c | |
parent | 845cbaa9ffbfd6a1f7976a6c7f3e4461e4d41993 (diff) | |
download | binutils-31b15688c414c7caf957be63d2914faafa1b9dda.zip binutils-31b15688c414c7caf957be63d2914faafa1b9dda.tar.gz binutils-31b15688c414c7caf957be63d2914faafa1b9dda.tar.bz2 |
Import libiberty from gcc
Diffstat (limited to 'libiberty/xmalloc.c')
-rw-r--r-- | libiberty/xmalloc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libiberty/xmalloc.c b/libiberty/xmalloc.c index e7d5268..3cc4cea 100644 --- a/libiberty/xmalloc.c +++ b/libiberty/xmalloc.c @@ -139,10 +139,10 @@ xmalloc_failed (size_t size) xexit (1); } -PTR +void * xmalloc (size_t size) { - PTR newmem; + void *newmem; if (size == 0) size = 1; @@ -153,10 +153,10 @@ xmalloc (size_t size) return (newmem); } -PTR +void * xcalloc (size_t nelem, size_t elsize) { - PTR newmem; + void *newmem; if (nelem == 0 || elsize == 0) nelem = elsize = 1; @@ -168,10 +168,10 @@ xcalloc (size_t nelem, size_t elsize) return (newmem); } -PTR -xrealloc (PTR oldmem, size_t size) +void * +xrealloc (void *oldmem, size_t size) { - PTR newmem; + void *newmem; if (size == 0) size = 1; |