main_loop: Make main_loop_wait() return void
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Jun 2017 17:32:49 +0000 (18:32 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Jul 2017 12:39:28 +0000 (14:39 +0200)
commitde5f852f38d644edf995a810c34b4d24dbfbd740
tree7fc3fd2adb94c8d2d029007b7eecce6ac70d7cde
parentbe59df797c6f465ef4f028fc2519efd2cfed4d30
main_loop: Make main_loop_wait() return void

The last users of main_loop_wait() that cared about the return value
have now been changed to no longer use it. Drop the now-useless return
value and make the function return void.

We avoid the awkwardness of ifdeffery to handle the 'ret'
variable in main_loop_wait() only being wanted if CONFIG_SLIRP
by simply dropping all the ifdefs. There are stub implementations
of slirp_pollfds_poll() and slirp_pollfds_fill() already in
stubs/slirp.c which do nothing, as required.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <1498584769-12439-3-git-send-email-peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/main-loop.h
util/main-loop.c