console: use get_uint() for "head" property

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

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170607163635.17635-41-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
Marc-André Lureau 2017-06-07 20:36:32 +04:00 committed by Markus Armbruster
parent 709fa704f6
commit ad664c1d4c

View File

@ -1872,8 +1872,8 @@ QemuConsole *qemu_console_lookup_by_device(DeviceState *dev, uint32_t head)
if (DEVICE(obj) != dev) { if (DEVICE(obj) != dev) {
continue; continue;
} }
h = object_property_get_int(OBJECT(consoles[i]), h = object_property_get_uint(OBJECT(consoles[i]),
"head", &error_abort); "head", &error_abort);
if (h != head) { if (h != head) {
continue; continue;
} }