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/calloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libiberty/calloc.c') diff --git a/libiberty/calloc.c b/libiberty/calloc.c index f4bd27b..c7d97a6 100644 --- a/libiberty/calloc.c +++ b/libiberty/calloc.c @@ -16,13 +16,13 @@ Uses @code{malloc} to allocate storage for @var{nelem} objects of #include /* For systems with larger pointers than ints, this must be declared. */ -PTR malloc (size_t); -void bzero (PTR, size_t); +void *malloc (size_t); +void bzero (void *, size_t); -PTR +void * calloc (size_t nelem, size_t elsize) { - register PTR ptr; + register void *ptr; if (nelem == 0 || elsize == 0) nelem = elsize = 1; -- cgit v1.1