diff options
author | Philippe Mathieu-Daudé | 2020-02-07 17:19:47 +0100 |
---|---|---|
committer | Eduardo Habkost | 2020-02-28 20:57:19 +0100 |
commit | ea0ac7f6f8f313f810858dd1ba4e7fae602e01bd (patch) | |
tree | c822cde3a88cdef15c4fc32d1de8f8546d0debdd /hw/ppc/mac_oldworld.c | |
parent | hw: Do not initialize MachineClass::is_default to 0 (diff) | |
download | qemu-ea0ac7f6f8f313f810858dd1ba4e7fae602e01bd.tar.gz qemu-ea0ac7f6f8f313f810858dd1ba4e7fae602e01bd.tar.xz qemu-ea0ac7f6f8f313f810858dd1ba4e7fae602e01bd.zip |
hw: Make MachineClass::is_default a boolean type
There's no good reason for it to be type int, change it to bool.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200207161948.15972-3-philmd@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/ppc/mac_oldworld.c')
-rw-r--r-- | hw/ppc/mac_oldworld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/mac_oldworld.c b/hw/ppc/mac_oldworld.c index 66e434bba3..440c406eb4 100644 --- a/hw/ppc/mac_oldworld.c +++ b/hw/ppc/mac_oldworld.c @@ -435,7 +435,7 @@ static void heathrow_class_init(ObjectClass *oc, void *data) mc->block_default_type = IF_IDE; mc->max_cpus = MAX_CPUS; #ifndef TARGET_PPC64 - mc->is_default = 1; + mc->is_default = true; #endif /* TOFIX "cad" when Mac floppy is implemented */ mc->default_boot_order = "cd"; |