summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorFam Zheng2017-04-21 14:26:57 +0200
committerMarkus Armbruster2017-04-24 09:12:59 +0200
commit226799cec5fa51681a5b8c24d1bebdd735c14a8c (patch)
treea83fac455d9e44cf30a9ffcc8c644b9d433c93e7 /block
parentutil/error: Fix leak in error_vprepend() (diff)
downloadqemu-226799cec5fa51681a5b8c24d1bebdd735c14a8c.tar.gz
qemu-226799cec5fa51681a5b8c24d1bebdd735c14a8c.tar.xz
qemu-226799cec5fa51681a5b8c24d1bebdd735c14a8c.zip
socket: Make errp the last parameter of socket_connect
Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170421122710.15373-2-famz@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/sheepdog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/sheepdog.c b/block/sheepdog.c
index fb9203e9be..b2a5998188 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -595,7 +595,7 @@ static int connect_to_sdog(BDRVSheepdogState *s, Error **errp)
{
int fd;
- fd = socket_connect(s->addr, errp, NULL, NULL);
+ fd = socket_connect(s->addr, NULL, NULL, errp);
if (s->addr->type == SOCKET_ADDRESS_KIND_INET && fd >= 0) {
int ret = socket_set_nodelay(fd);