Skip to content

Commit

Permalink
console: use get_uint() for "head" property
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elmarco authored and Markus Armbruster committed Jun 20, 2017
1 parent 709fa70 commit ad664c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/console.c
Expand Up @@ -1872,8 +1872,8 @@ QemuConsole *qemu_console_lookup_by_device(DeviceState *dev, uint32_t head)
if (DEVICE(obj) != dev) {
continue;
}
h = object_property_get_int(OBJECT(consoles[i]),
"head", &error_abort);
h = object_property_get_uint(OBJECT(consoles[i]),
"head", &error_abort);
if (h != head) {
continue;
}
Expand Down

0 comments on commit ad664c1

Please sign in to comment.