forked from Imagelibrary/rtems
2009-08-26 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* spstkalloc/init.c: Changed allocator signature. Functions are now static.
This commit is contained in:
@@ -21,14 +21,14 @@ int stackToAlloc = 0;
|
||||
StackMemory_t Stacks[3];
|
||||
void *StackDeallocated = NULL;
|
||||
|
||||
void *StackAllocator(uint32_t size)
|
||||
static void *StackAllocator(size_t size)
|
||||
{
|
||||
if (stackToAlloc < MAXIMUM_STACKS)
|
||||
return &Stacks[stackToAlloc++];
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void StackDeallocator(void *stack)
|
||||
static void StackDeallocator(void *stack)
|
||||
{
|
||||
StackDeallocated = stack;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user