diff options
author | DJ Delorie <dj@redhat.com> | 2005-03-27 05:28:42 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-03-27 05:28:42 +0000 |
commit | 9334f9c6cd576128ec4fc891b5fcf267a7fca7fb (patch) | |
tree | fda195cba89e4178623ea39866f41e6e28eb67c1 /libiberty/calloc.c | |
parent | 8da8e0b3f397df66d6e1c03470f4e6c31a63d292 (diff) | |
download | fsf-binutils-gdb-9334f9c6cd576128ec4fc891b5fcf267a7fca7fb.zip fsf-binutils-gdb-9334f9c6cd576128ec4fc891b5fcf267a7fca7fb.tar.gz fsf-binutils-gdb-9334f9c6cd576128ec4fc891b5fcf267a7fca7fb.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/calloc.c')
-rw-r--r-- | libiberty/calloc.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libiberty/calloc.c b/libiberty/calloc.c index 5073682..f4bd27b 100644 --- a/libiberty/calloc.c +++ b/libiberty/calloc.c @@ -13,19 +13,14 @@ Uses @code{malloc} to allocate storage for @var{nelem} objects of */ #include "ansidecl.h" -#ifdef ANSI_PROTOTYPES #include <stddef.h> -#else -#define size_t unsigned long -#endif /* For systems with larger pointers than ints, this must be declared. */ -PTR malloc PARAMS ((size_t)); -void bzero PARAMS ((PTR, size_t)); +PTR malloc (size_t); +void bzero (PTR, size_t); PTR -calloc (nelem, elsize) - size_t nelem, elsize; +calloc (size_t nelem, size_t elsize) { register PTR ptr; |