diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-21 21:29:03 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-21 21:29:03 +0000 |
commit | 6fee03898f638fe6fc4b63b3221d10727f9354e0 (patch) | |
tree | 5d095636c98151e264cd4957c378c142abf62860 | |
parent | 2008-12-21 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-6fee03898f638fe6fc4b63b3221d10727f9354e0.tar.bz2 |
2008-12-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/malloc_statistics_helpers.c: Use intptr_t not
ssize_t.
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libcsupport/src/malloc_statistics_helpers.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index fc5ccac1a5..76ecb3ffb7 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,10 @@ 2008-12-21 Joel Sherrill <joel.sherrill@oarcorp.com> + * libcsupport/src/malloc_statistics_helpers.c: Use intptr_t not + ssize_t. + +2008-12-21 Joel Sherrill <joel.sherrill@oarcorp.com> + * score/inline/rtems/score/object.inl, score/src/objectgetbyindex.c: Fix issues when using 16-bit object Ids. diff --git a/cpukit/libcsupport/src/malloc_statistics_helpers.c b/cpukit/libcsupport/src/malloc_statistics_helpers.c index e65ab81cc2..f02a966da2 100644 --- a/cpukit/libcsupport/src/malloc_statistics_helpers.c +++ b/cpukit/libcsupport/src/malloc_statistics_helpers.c @@ -35,8 +35,8 @@ void rtems_malloc_statistics_at_malloc( void *pointer ) { - ssize_t actual_size = 0; - uint32_t current_depth; + intptr_t actual_size = 0; + uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) @@ -59,7 +59,7 @@ void rtems_malloc_statistics_at_free( void *pointer ) { - ssize_t size; + intptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { MSBUMP(lifetime_freed, size); |