forked from Imagelibrary/rtems
2008-12-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/malloc_statistics_helpers.c: Use intptr_t not ssize_t.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
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:
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user