diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-02 20:56:55 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-02 20:56:55 +0000 |
commit | 4c09f4b3fefc7ba5c5868a97ad00c1ee14a06677 (patch) | |
tree | 30ce362448a1d4d367e6532beac8b428315be09d /cpukit/libcsupport/src/malloc_statistics_helpers.c | |
parent | 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-4c09f4b3fefc7ba5c5868a97ad00c1ee14a06677.tar.bz2 |
2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/malloc_statistics_helpers.c,
libcsupport/src/realloc.c, rtems/include/rtems/rtems/region.h,
rtems/include/rtems/rtems/support.h,
rtems/src/regiongetsegmentsize.c, rtems/src/regionresizesegment.c,
rtems/src/workspace.c, sapi/include/confdefs.h,
score/include/rtems/score/heap.h,
score/include/rtems/score/protectedheap.h,
score/include/rtems/score/wkspace.h, score/src/heap.c,
score/src/heapallocate.c, score/src/heapallocatealigned.c,
score/src/heapextend.c, score/src/heapresizeblock.c,
score/src/heapsizeofuserarea.c, score/src/pheapgetblocksize.c,
score/src/wkspace.c: Change size_t to ssize_t on all Heap, Workspace
and Region calls. On 16-bit architectures, size_t can be 16-bits
which would limit sizes to 64K.
Diffstat (limited to 'cpukit/libcsupport/src/malloc_statistics_helpers.c')
-rw-r--r-- | cpukit/libcsupport/src/malloc_statistics_helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/malloc_statistics_helpers.c b/cpukit/libcsupport/src/malloc_statistics_helpers.c index 5d02f8b822..e65ab81cc2 100644 --- a/cpukit/libcsupport/src/malloc_statistics_helpers.c +++ b/cpukit/libcsupport/src/malloc_statistics_helpers.c @@ -35,7 +35,7 @@ void rtems_malloc_statistics_at_malloc( void *pointer ) { - size_t actual_size = 0; + ssize_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; @@ -59,7 +59,7 @@ void rtems_malloc_statistics_at_free( void *pointer ) { - size_t size; + ssize_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { MSBUMP(lifetime_freed, size); |