summaryrefslogtreecommitdiff
path: root/ui/console.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-06-07 20:36:32 +0400
committerMarkus Armbruster <armbru@redhat.com>2017-06-20 14:31:33 +0200
commitad664c1d4c731c8320fb9008125fa93069a6315f (patch)
tree099f5288339b31be879a596934af09337f898958 /ui/console.c
parent709fa704f6b142f9be3a9e33a81e6d8d4c52e2de (diff)
downloadqemu-ad664c1d4c731c8320fb9008125fa93069a6315f.tar.gz
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>
Diffstat (limited to 'ui/console.c')
-rw-r--r--ui/console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/console.c b/ui/console.c
index d914cced53..40572c9254 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -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;
}