mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02: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:
committed by
Tom Rini
parent
bf1af3d872
commit
347d06dec4
@@ -143,7 +143,7 @@ void *os_malloc(size_t length)
|
|||||||
return hdr + 1;
|
return hdr + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *os_free(void *ptr)
|
void os_free(void *ptr)
|
||||||
{
|
{
|
||||||
struct os_mem_hdr *hdr = 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
|
* \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
|
* Reallocate previously-allocated memory to increase/decrease space
|
||||||
|
Reference in New Issue
Block a user