aboutsummaryrefslogtreecommitdiff
path: root/libiberty/calloc.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-03-27 05:28:42 +0000
committerDJ Delorie <dj@redhat.com>2005-03-27 05:28:42 +0000
commit9334f9c6cd576128ec4fc891b5fcf267a7fca7fb (patch)
treefda195cba89e4178623ea39866f41e6e28eb67c1 /libiberty/calloc.c
parent8da8e0b3f397df66d6e1c03470f4e6c31a63d292 (diff)
downloadfsf-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.c11
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;