From abc1e9ef644658f44700761a263f5bb5aad22bbd Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 28 Jan 2011 20:14:34 +0100 Subject: Forgot a few things for malloc. --- os/src/malloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/os/src/malloc.c b/os/src/malloc.c index a24a87f..281a75b 100644 --- a/os/src/malloc.c +++ b/os/src/malloc.c @@ -1,6 +1,7 @@ #include #include -#include +#include +#include static xSemaphoreHandle malloc_sem = NULL; @@ -16,4 +17,5 @@ void * malloc(size_t size) { ptr =_malloc_r(_impure_ptr, size); if (malloc_sem) xSemaphoreGive(malloc_sem); + return ptr; } -- cgit v1.2.3