summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-02-11 04:52:59 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-02-11 04:52:59 +0000
commitfbbfad9a8bf9bc3ee1a08a3edfe1f7b702ff050c (patch)
treeda7af184f77d6352fde2c8acd86f91a0eec8dd83 /cpukit
parent2007-02-11 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-fbbfad9a8bf9bc3ee1a08a3edfe1f7b702ff050c.tar.bz2
Use size_t for heap-sizes.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/score/include/rtems/score/heap.h8
-rw-r--r--cpukit/score/src/heap.c4
-rw-r--r--cpukit/score/src/heapallocate.c2
-rw-r--r--cpukit/score/src/heapextend.c2
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
)
{