diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-01-11 16:20:19 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2021-03-09 23:12:58 +0100 |
commit | 0a38950931af0088449a6f224809acd0214d9d27 (patch) | |
tree | bcff3388403cc3e8119bdca2358c402a34f50a71 | |
parent | 32d1fd8d39475bc9ed7d3b5f1a666cce7f1d5fc2 (diff) | |
download | qemu-0a38950931af0088449a6f224809acd0214d9d27.zip qemu-0a38950931af0088449a6f224809acd0214d9d27.tar.gz qemu-0a38950931af0088449a6f224809acd0214d9d27.tar.bz2 |
sysemu/runstate: Let runstate_is_running() return bool
runstate_check() returns a boolean. runstate_is_running()
returns what runstate_check() returns, also a boolean.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210111152020.1422021-2-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r-- | include/sysemu/runstate.h | 2 | ||||
-rw-r--r-- | softmmu/runstate.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/sysemu/runstate.h b/include/sysemu/runstate.h index e557f47..3ab35a0 100644 --- a/include/sysemu/runstate.h +++ b/include/sysemu/runstate.h @@ -6,7 +6,7 @@ bool runstate_check(RunState state); void runstate_set(RunState new_state); -int runstate_is_running(void); +bool runstate_is_running(void); bool runstate_needs_reset(void); bool runstate_store(char *str, size_t size); diff --git a/softmmu/runstate.c b/softmmu/runstate.c index 2874417..0187f18 100644 --- a/softmmu/runstate.c +++ b/softmmu/runstate.c @@ -218,7 +218,7 @@ void runstate_set(RunState new_state) current_run_state = new_state; } -int runstate_is_running(void) +bool runstate_is_running(void) { return runstate_check(RUN_STATE_RUNNING); } |