]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: Add os_realloc()
authorSimon Glass <sjg@chromium.org>
Sat, 6 Feb 2021 16:57:32 +0000 (09:57 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 2 Mar 2021 20:53:37 +0000 (15:53 -0500)
commit14e46dfb176b4505e4bafa545d3facb9228d40a9
treebac3b3bb1b32f58bccb80c6616bc7d57ca899d7d
parent869badca616113c7002d934f549bb80f948f9900
sandbox: Add os_realloc()

We provide os_malloc() and os_free() but not os_realloc(). Add this,
following the usual semantics. Also update os_malloc() to behave correctly
when passed a zero size.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
arch/sandbox/cpu/os.c
include/os.h