aboutsummaryrefslogtreecommitdiff
path: root/libiberty/strdup.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/strdup.c
parent845cbaa9ffbfd6a1f7976a6c7f3e4461e4d41993 (diff)
downloadbinutils-31b15688c414c7caf957be63d2914faafa1b9dda.zip
binutils-31b15688c414c7caf957be63d2914faafa1b9dda.tar.gz
binutils-31b15688c414c7caf957be63d2914faafa1b9dda.tar.bz2
Import libiberty from gcc
Diffstat (limited to 'libiberty/strdup.c')
-rw-r--r--libiberty/strdup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/strdup.c b/libiberty/strdup.c
index 78c2093..8a4188e 100644
--- a/libiberty/strdup.c
+++ b/libiberty/strdup.c
@@ -13,8 +13,8 @@ Returns a pointer to a copy of @var{s} in memory obtained from
#include <stddef.h>
extern size_t strlen (const char*);
-extern PTR malloc (size_t);
-extern PTR memcpy (PTR, const PTR, size_t);
+extern void *malloc (size_t);
+extern void *memcpy (void *, const void *, size_t);
char *
strdup(const char *s)