summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-03-30 15:23:50 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-03-30 15:23:50 +0000
commit6cd05d2aa247f5bd53e02377ec5dab3aa5aaf852 (patch)
tree0e6b1eb08851630794f9b9f7231fae623e2336d7 /cpukit/libcsupport
parent2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-6cd05d2aa247f5bd53e02377ec5dab3aa5aaf852.tar.bz2
2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>
* rtems/include/rtems/rtems/region.h: Include stddef.h for size_t. (rtems_region_get_segment_size): Use size_t instead of uint32_t for "size" (3rd arg). * rtems/src/regiongetsegmentsize.c: Reflect changes above. * libcsupport/src/malloc.c: Reflect changes above.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/src/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/malloc.c b/cpukit/libcsupport/src/malloc.c
index 2d4f965c44..316f6e3439 100644
--- a/cpukit/libcsupport/src/malloc.c
+++ b/cpukit/libcsupport/src/malloc.c
@@ -245,7 +245,7 @@ void *malloc(
#ifdef MALLOC_STATS
if (return_this)
{
- uint32_t actual_size;
+ size_t actual_size;
uint32_t current_depth;
status = rtems_region_get_segment_size(
RTEMS_Malloc_Heap, return_this, &actual_size);
@@ -369,7 +369,7 @@ void free(
#ifdef MALLOC_STATS
{
- uint32_t size;
+ size_t size;
status = rtems_region_get_segment_size( RTEMS_Malloc_Heap, ptr, &size );
if ( status == RTEMS_SUCCESSFUL ) {
MSBUMP(lifetime_freed, size);