From: Masahiro Yamada Date: Wed, 15 Jan 2014 04:06:41 +0000 (+0900) Subject: sandbox: fix the return type of os_free() function X-Git-Tag: v2014.04-rc1~128 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=347d06dec43e2e6ca50f975d5472072a977c528f;p=oweals%2Fu-boot.git sandbox: fix the return type of os_free() function The function os_free() returns nothing. Its return type should be "void" rather than "void *". Signed-off-by: Masahiro Yamada --- diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index 725b505177..2e2fc58a1b 100644 --- a/arch/sandbox/cpu/os.c +++ b/arch/sandbox/cpu/os.c @@ -143,7 +143,7 @@ void *os_malloc(size_t length) return hdr + 1; } -void *os_free(void *ptr) +void os_free(void *ptr) { struct os_mem_hdr *hdr = ptr; diff --git a/include/os.h b/include/os.h index b65fba4301..d6d6e5794e 100644 --- a/include/os.h +++ b/include/os.h @@ -113,7 +113,7 @@ void *os_malloc(size_t length); * * \param ptr Pointer to memory block to free */ -void *os_free(void *ptr); +void os_free(void *ptr); /** * Reallocate previously-allocated memory to increase/decrease space