From 3127180e745334723b33045e712dd3ab90bcf9d5 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 29 Mar 2004 12:51:43 +0000 Subject: 2004-04-29 Ralf Corsepius * score/src/Unlimited.txt, score/src/chain.c, score/src/coremsg.c, score/src/coremsgbroadcast.c, score/src/coremsgclose.c, score/src/coremsgflush.c, score/src/coremsgflushsupp.c, score/src/coremsgseize.c, score/src/coremsgsubmit.c, score/src/coremutex.c, score/src/coremutexflush.c, score/src/coresem.c, score/src/coresemflush.c, score/src/coretod.c, score/src/coretodtickle.c, score/src/coretodtoseconds.c, score/src/coretodvalidate.c, score/src/heap.c, score/src/heapallocate.c, score/src/heapextend.c, score/src/heapfree.c, score/src/heapsizeofuserarea.c, score/src/interr.c, score/src/iterateoverthreads.c, score/src/mpci.c, score/src/object.c, score/src/objectallocate.c, score/src/objectallocatebyindex.c, score/src/objectclearname.c, score/src/objectcomparenameraw.c, score/src/objectcomparenamestring.c, score/src/objectcopynameraw.c, score/src/objectcopynamestring.c, score/src/objectextendinformation.c, score/src/objectfree.c, score/src/objectget.c, score/src/objectgetbyindex.c, score/src/objectgetisr.c, score/src/objectgetnoprotection.c, score/src/objectidtoname.c, score/src/objectinitializeinformation.c, score/src/objectmp.c, score/src/objectnametoid.c, score/src/objectshrinkinformation.c, score/src/thread.c, score/src/threadcreateidle.c, score/src/threadget.c, score/src/threadidlebody.c, score/src/threadinitialize.c, score/src/threadmp.c, score/src/threadq.c, score/src/threadqdequeuepriority.c, score/src/threadqenqueuepriority.c, score/src/threadqfirstpriority.c, score/src/threadqflush.c, score/src/threadreset.c, score/src/threadrestart.c, score/src/threadsettransient.c, score/src/threadstackallocate.c, score/src/threadstart.c, score/src/userext.c, score/src/watchdoginsert.c, score/src/wkspace.c: Convert to using c99 fixed size types. --- cpukit/score/src/heapallocate.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'cpukit/score/src/heapallocate.c') diff --git a/cpukit/score/src/heapallocate.c b/cpukit/score/src/heapallocate.c index 8cf23a22ef..13165bcfce 100644 --- a/cpukit/score/src/heapallocate.c +++ b/cpukit/score/src/heapallocate.c @@ -33,20 +33,20 @@ void *_Heap_Allocate( Heap_Control *the_heap, - unsigned32 size + uint32_t size ) { - unsigned32 excess; - unsigned32 the_size; + uint32_t excess; + uint32_t the_size; Heap_Block *the_block; Heap_Block *next_block; Heap_Block *temporary_block; void *ptr; - unsigned32 offset; + uint32_t offset; /* * Catch the case of a user allocating close to the limit of the - * unsigned32. + * uint32_t . */ if ( size >= (-1 - HEAP_BLOCK_USED_OVERHEAD) ) @@ -96,14 +96,14 @@ void *_Heap_Allocate( * Have to save the bump amount in the buffer so that free can figure it out */ - offset = the_heap->page_size - (((unsigned32) ptr) & (the_heap->page_size - 1)); + offset = the_heap->page_size - (((uint32_t ) ptr) & (the_heap->page_size - 1)); ptr = _Addresses_Add_offset( ptr, offset ); - *(((unsigned32 *) ptr) - 1) = offset; + *(((uint32_t *) ptr) - 1) = offset; #ifdef RTEMS_DEBUG { - unsigned32 ptr_u32; - ptr_u32 = (unsigned32) ptr; + uint32_t ptr_u32; + ptr_u32 = (uint32_t ) ptr; if (ptr_u32 & (the_heap->page_size - 1)) abort(); } -- cgit v1.2.3