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 <yamada.m@jp.panasonic.com>
master
Masahiro Yamada 11 years ago committed by Tom Rini
parent bf1af3d872
commit 347d06dec4
  1. 2
      arch/sandbox/cpu/os.c
  2. 2
      include/os.h

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

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

Loading…
Cancel
Save