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:
Joel Sherrill
2008-12-21 21:29:03 +00:00
parent 27b7e81d91
commit 6fee03898f
2 changed files with 8 additions and 3 deletions

View File

@@ -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:

View File

@@ -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);