summary refs log tree commit diff stats
path: root/ui/dbus-chardev.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2024-11-21 14:22:01 -0500
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-09 18:16:24 +0100
commitd3176a9f387f8b6b56882045d36f5b3f82565d90 (patch)
treef2ba15defa86b05ddd4b1d8bb2753ed498a1193c /ui/dbus-chardev.c
parent180e8f16f0ad6835ce0c437c7ffc9f25801a399e (diff)
downloadfocaccia-qemu-d3176a9f387f8b6b56882045d36f5b3f82565d90.tar.gz
focaccia-qemu-d3176a9f387f8b6b56882045d36f5b3f82565d90.zip
qom: Use object_get_container()
Use object_get_container() whenever applicable across the tree.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20241121192202.4155849-13-peterx@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'ui/dbus-chardev.c')
-rw-r--r--ui/dbus-chardev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/dbus-chardev.c b/ui/dbus-chardev.c
index 1d3a7122a1..bf061cbc93 100644
--- a/ui/dbus-chardev.c
+++ b/ui/dbus-chardev.c
@@ -106,7 +106,7 @@ dbus_chardev_init(DBusDisplay *dpy)
     dpy->notifier.notify = dbus_display_on_notify;
     dbus_display_notifier_add(&dpy->notifier);
 
-    object_child_foreach(container_get(object_get_root(), "/chardevs"),
+    object_child_foreach(object_get_container("chardevs"),
                          dbus_display_chardev_foreach, dpy);
 }