diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-02-11 04:52:37 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-02-11 04:52:37 +0000 |
commit | 8022a681a34f0bb518dc6bafbfcaf543bb1026eb (patch) | |
tree | a0bb15453a97c1156490bcb10e5287b0f740a6a6 /cpukit/score | |
parent | 2007-02-11 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-8022a681a34f0bb518dc6bafbfcaf543bb1026eb.tar.bz2 |
Use size_t for heap-sizes.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/heap.h | 8 | ||||
-rw-r--r-- | cpukit/score/src/heap.c | 4 | ||||
-rw-r--r-- | cpukit/score/src/heapallocate.c | 2 | ||||
-rw-r--r-- | cpukit/score/src/heapextend.c | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/cpukit/score/include/rtems/score/heap.h b/cpukit/score/include/rtems/score/heap.h index c00e2c7098..1b5c0577a0 100644 --- a/cpukit/score/include/rtems/score/heap.h +++ b/cpukit/score/include/rtems/score/heap.h @@ -282,7 +282,7 @@ uint32_t _Heap_Initialize( Heap_Extend_status _Heap_Extend( Heap_Control *the_heap, void *starting_address, - uint32_t size, + size_t size, uint32_t *amount_extended ); @@ -297,7 +297,7 @@ Heap_Extend_status _Heap_Extend( */ void *_Heap_Allocate( Heap_Control *the_heap, - uint32_t size + size_t size ); /** @@ -450,8 +450,8 @@ void _Heap_Get_free_information( * * @return This method returns block size on success, 0 if overflow occured. */ -extern uint32_t _Heap_Calc_block_size( - uint32_t size, +extern size_t _Heap_Calc_block_size( + size_t size, uint32_t page_size, uint32_t min_size ); diff --git a/cpukit/score/src/heap.c b/cpukit/score/src/heap.c index 5e7a8804d2..5f45668da0 100644 --- a/cpukit/score/src/heap.c +++ b/cpukit/score/src/heap.c @@ -205,8 +205,8 @@ uint32_t _Heap_Initialize( * Convert user requested 'size' of memory block to the block size. * Return block size on success, 0 if overflow occured */ -uint32_t _Heap_Calc_block_size( - uint32_t size, +size_t _Heap_Calc_block_size( + size_t size, uint32_t page_size, uint32_t min_size) { diff --git a/cpukit/score/src/heapallocate.c b/cpukit/score/src/heapallocate.c index e2a7ecdc25..418ee758fc 100644 --- a/cpukit/score/src/heapallocate.c +++ b/cpukit/score/src/heapallocate.c @@ -36,7 +36,7 @@ void *_Heap_Allocate( Heap_Control *the_heap, - uint32_t size + size_t size ) { uint32_t the_size; diff --git a/cpukit/score/src/heapextend.c b/cpukit/score/src/heapextend.c index 0bcf194532..73eb91f127 100644 --- a/cpukit/score/src/heapextend.c +++ b/cpukit/score/src/heapextend.c @@ -38,7 +38,7 @@ Heap_Extend_status _Heap_Extend( Heap_Control *the_heap, void *starting_address, - uint32_t size, + size_t size, uint32_t *amount_extended ) { |