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>
This commit is contained in:
parent
32d1fd8d39
commit
0a38950931
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user