mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
qobject: Use 'bool' inside qdict
Now that qbool is fixed, let's fix getting and setting a bool value to a qdict member to also use C99 bool rather than int. I audited all callers to ensure that the changed return type will not cause any changed semantics. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Acked-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
fc48ffc39e
commit
34acbc9522
6 changed files with 28 additions and 28 deletions
|
@ -2091,7 +2091,7 @@ static void hmp_mce(Monitor *mon, const QDict *qdict)
|
|||
uint64_t misc = qdict_get_int(qdict, "misc");
|
||||
int flags = MCE_INJECT_UNCOND_AO;
|
||||
|
||||
if (qdict_get_try_bool(qdict, "broadcast", 0)) {
|
||||
if (qdict_get_try_bool(qdict, "broadcast", false)) {
|
||||
flags |= MCE_INJECT_BROADCAST;
|
||||
}
|
||||
cs = qemu_get_cpu(cpu_index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue