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/calloc.c | |
parent | 845cbaa9ffbfd6a1f7976a6c7f3e4461e4d41993 (diff) | |
download | gdb-31b15688c414c7caf957be63d2914faafa1b9dda.zip gdb-31b15688c414c7caf957be63d2914faafa1b9dda.tar.gz gdb-31b15688c414c7caf957be63d2914faafa1b9dda.tar.bz2 |
Import libiberty from gcc
Diffstat (limited to 'libiberty/calloc.c')
-rw-r--r-- | libiberty/calloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <stddef.h> /* 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; |