* spstkalloc/init.c: Changed allocator signature. Functions are now
	static.
This commit is contained in:
Joel Sherrill
2009-08-26 12:16:36 +00:00
parent 7c9c8c8c59
commit c1ac715a4a
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2009-08-26 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* spstkalloc/init.c: Changed allocator signature. Functions are now
static.
2009-08-25 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* sp29/init.c: Fixed return value evaluation.

View File

@@ -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;
}