diff options
Diffstat (limited to 'util/qemu-sockets.c')
-rw-r--r-- | util/qemu-sockets.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index 01fc15481a..a0ca6d4a7e 100644 --- a/util/qemu-sockets.c +++ b/util/qemu-sockets.c @@ -1147,16 +1147,14 @@ SocketAddress *socket_remote_address(int fd, Error **errp) void qapi_copy_SocketAddress(SocketAddress **p_dest, SocketAddress *src) { - QmpOutputVisitor *qov; Visitor *ov, *iv; QObject *obj; *p_dest = NULL; - qov = qmp_output_visitor_new(); - ov = qmp_output_get_visitor(qov); + ov = qmp_output_visitor_new(&obj); visit_type_SocketAddress(ov, NULL, &src, &error_abort); - obj = qmp_output_get_qobject(qov); + visit_complete(ov, &obj); visit_free(ov); if (!obj) { return; |