Commit ad664c1d authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Markus Armbruster
Browse files

console: use get_uint() for "head" property



TYPE_QEMU_CONSOLE property "head" is defined with
object_property_add_uint*_ptr().

Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170607163635.17635-41-marcandre.lureau@redhat.com>
Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
parent 709fa704
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1872,7 +1872,7 @@ QemuConsole *qemu_console_lookup_by_device(DeviceState *dev, uint32_t head)
        if (DEVICE(obj) != dev) {
            continue;
        }
        h = object_property_get_int(OBJECT(consoles[i]),
        h = object_property_get_uint(OBJECT(consoles[i]),
                                     "head", &error_abort);
        if (h != head) {
            continue;