]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/qdev-core.h
bus: simplify name handling
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 15 Jul 2016 10:04:49 +0000 (12:04 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 8 Sep 2016 14:05:22 +0000 (18:05 +0400)
commitf73480c36f49562556b80bb5bf8acc45e20dcca1
tree9d102ca71a9ba4abb14c01b3ce7a9fd2098b74b1
parente9529768d4786414725a9675991aeb466a6d600c
bus: simplify name handling

Simplify a bit the code by using g_strdup_printf() and store it in a
non-const value so casting is no longer needed, and ownership is
clearer.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
hw/core/bus.c
include/hw/qdev-core.h