From 6cd05d2aa247f5bd53e02377ec5dab3aa5aaf852 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 30 Mar 2004 15:23:50 +0000 Subject: 2004-03-30 Ralf Corsepius * 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. --- cpukit/ChangeLog | 8 ++++++++ cpukit/libcsupport/src/malloc.c | 4 ++-- cpukit/rtems/include/rtems/rtems/region.h | 4 +++- cpukit/rtems/src/regiongetsegmentsize.c | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index bdc56786b9..5f4e773278 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,11 @@ +2004-03-30 Ralf Corsepius + + * 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. + 2004-03-30 Ralf Corsepius * aclocal/rtems-top.m4: Don't AC_SUBST(PROJECT_ROOT). 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); diff --git a/cpukit/rtems/include/rtems/rtems/region.h b/cpukit/rtems/include/rtems/rtems/region.h index 780ca6af83..c3e5febd32 100644 --- a/cpukit/rtems/include/rtems/rtems/region.h +++ b/cpukit/rtems/include/rtems/rtems/region.h @@ -29,6 +29,8 @@ extern "C" { #endif +#include + #include #include #include @@ -190,7 +192,7 @@ rtems_status_code rtems_region_get_segment( rtems_status_code rtems_region_get_segment_size( Objects_Id id, void *segment, - uint32_t *size + size_t *size ); /* diff --git a/cpukit/rtems/src/regiongetsegmentsize.c b/cpukit/rtems/src/regiongetsegmentsize.c index 733da6e091..d9ae54e2ac 100644 --- a/cpukit/rtems/src/regiongetsegmentsize.c +++ b/cpukit/rtems/src/regiongetsegmentsize.c @@ -42,7 +42,7 @@ rtems_status_code rtems_region_get_segment_size( Objects_Id id, void *segment, - uint32_t *size + size_t *size ) { register Region_Control *the_region; -- cgit v1.2.3