summaryrefslogtreecommitdiff
path: root/libiberty/xmalloc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-05-13 16:43:15 +0930
committerAlan Modra <amodra@gmail.com>2022-05-13 16:43:15 +0930
commit31b15688c414c7caf957be63d2914faafa1b9dda (patch)
treee9d162e81034cf547a59a312c82a43df5b9f0a29 /libiberty/xmalloc.c
parent845cbaa9ffbfd6a1f7976a6c7f3e4461e4d41993 (diff)
downloadbinutils-gdb-31b15688c414c7caf957be63d2914faafa1b9dda.tar.gz
Import libiberty from gcc
Diffstat (limited to 'libiberty/xmalloc.c')
-rw-r--r--libiberty/xmalloc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libiberty/xmalloc.c b/libiberty/xmalloc.c
index e7d52683d35..3cc4cea37c3 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;