mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-08 02:07:55 +01:00
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>
This commit is contained in:
parent
bf1af3d872
commit
347d06dec4
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue