]> git.proxmox.com Git - mirror_qemu.git/commit
util/oslib: Have qemu_prealloc_mem() handler return a boolean
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 20 Nov 2023 14:33:19 +0000 (15:33 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 5 Jan 2024 15:20:15 +0000 (16:20 +0100)
commitb622ee98bf784b093494a81c46667bd6e6324f1a
treebf78144d2d71206051edc91e74f1fb50e55d3faf
parent3961613a760766921cdd6423ced0f801c2a6f1fc
util/oslib: Have qemu_prealloc_mem() handler return a boolean

Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have qemu_prealloc_mem()
return a boolean indicating whether an error is set or not.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-19-philmd@linaro.org>
include/qemu/osdep.h
util/oslib-posix.c
util/oslib-win32.c