summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/calloc.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-27 11:44:48 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-28 11:23:53 +0100
commit01557b0c6e723627427195bb33bdfe0b125c70b1 (patch)
treeecd3bdb408cecd25bf24c25adb51dafdddedbc3a /cpukit/libcsupport/src/calloc.c
parentbdbuf: Fix race condition with sync active flag (diff)
downloadrtems-01557b0c6e723627427195bb33bdfe0b125c70b1.tar.bz2
libcsupport: Delete malloc statistics
Use the heap handler statistics instead. Add heap walk option to MALLOC shell command. close #1367
Diffstat (limited to 'cpukit/libcsupport/src/calloc.c')
-rw-r--r--cpukit/libcsupport/src/calloc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/cpukit/libcsupport/src/calloc.c b/cpukit/libcsupport/src/calloc.c
index 095b467025..915ece3e17 100644
--- a/cpukit/libcsupport/src/calloc.c
+++ b/cpukit/libcsupport/src/calloc.c
@@ -19,7 +19,6 @@
#endif
#if defined(RTEMS_NEWLIB) && !defined(HAVE_CALLOC)
-#include "malloc_p.h"
#include <stdlib.h>
#include <string.h>
@@ -31,15 +30,11 @@ void *calloc(
char *cptr;
size_t length;
- MSBUMP(calloc_calls, 1);
-
length = nelem * elsize;
cptr = malloc( length );
if ( cptr )
memset( cptr, '\0', length );
- MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
-
return cptr;
}
#endif