summaryrefslogtreecommitdiff
path: root/include/io
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2016-06-09 10:48:45 -0600
committerMarkus Armbruster <armbru@redhat.com>2016-07-06 10:52:04 +0200
commit37f9e0a2b65a6dd5fe09cb0023b8001014aaaf01 (patch)
treed1fe710730adff2fa1c31449e380dbb38fad6ea6 /include/io
parenta15fcc3cf69ee3d408f60d6cc316488d2b0249b4 (diff)
downloadqemu-37f9e0a2b65a6dd5fe09cb0023b8001014aaaf01.tar.gz
sockets: Use new QAPI cloning
Rather than rolling our own clone via an expensive conversion in and back out of QObject, use the new clone visitor. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1465490926-28625-15-git-send-email-eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include/io')
-rw-r--r--include/io/task.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/io/task.h b/include/io/task.h
index a993212ad9..df9499aa3a 100644
--- a/include/io/task.h
+++ b/include/io/task.h
@@ -159,7 +159,7 @@ typedef int (*QIOTaskWorker)(QIOTask *task,
* QIOTask *task;
* SocketAddress *addrCopy;
*
- * qapi_copy_SocketAddress(&addrCopy, addr);
+ * addrCopy = QAPI_CLONE(SocketAddress, addr);
* task = qio_task_new(OBJECT(obj), func, opaque, notify);
*
* qio_task_run_in_thread(task, myobject_listen_worker,