summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-02-11 04:52:37 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-02-11 04:52:37 +0000
commit8022a681a34f0bb518dc6bafbfcaf543bb1026eb (patch)
treea0bb15453a97c1156490bcb10e5287b0f740a6a6 /cpukit/score/src
parent2007-02-11 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-8022a681a34f0bb518dc6bafbfcaf543bb1026eb.tar.bz2
Use size_t for heap-sizes.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/heap.c4
-rw-r--r--cpukit/score/src/heapallocate.c2
-rw-r--r--cpukit/score/src/heapextend.c2
3 files changed, 4 insertions, 4 deletions
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
)
{