X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=libiberty%2Fcalloc.c;fp=libiberty%2Fcalloc.c;h=f4bd27b1cd2a460c89c1e5ba2e3e94190db98c85;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=b342f6c1b3b54633cb53822cbd9e57368a54df75;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/libiberty/calloc.c b/libiberty/calloc.c index b342f6c1..f4bd27b1 100644 --- a/libiberty/calloc.c +++ b/libiberty/calloc.c @@ -13,20 +13,14 @@ Uses @code{malloc} to allocate storage for @var{nelem} objects of */ #include "ansidecl.h" -#include "libiberty.h" - -#ifdef ANSI_PROTOTYPES #include -#else -#define size_t unsigned long -#endif /* For systems with larger pointers than ints, this must be declared. */ -PTR malloc PARAMS ((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;