From 31b15688c414c7caf957be63d2914faafa1b9dda Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 13 May 2022 16:43:15 +0930 Subject: Import libiberty from gcc --- libiberty/strndup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libiberty/strndup.c') diff --git a/libiberty/strndup.c b/libiberty/strndup.c index 5992ee9..cfbb381 100644 --- a/libiberty/strndup.c +++ b/libiberty/strndup.c @@ -34,8 +34,8 @@ memory was available. The result is always NUL terminated. #include extern size_t strnlen (const char *s, size_t maxlen); -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 * strndup (const char *s, size_t n) -- cgit v1.1