diff options
-rw-r--r-- | testsuites/sptests/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/sptests/spstkalloc/init.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index 12e704d0a6..908346dd3e 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -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. diff --git a/testsuites/sptests/spstkalloc/init.c b/testsuites/sptests/spstkalloc/init.c index 131a803525..097a572ec0 100644 --- a/testsuites/sptests/spstkalloc/init.c +++ b/testsuites/sptests/spstkalloc/init.c @@ -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; } |