summaryrefslogtreecommitdiffstats
path: root/include/qemu/sockets.h
diff options
context:
space:
mode:
authorFam Zheng2017-04-21 14:26:58 +0200
committerMarkus Armbruster2017-04-24 09:12:59 +0200
commit6dffc1f670c2d49b6b5d06b6a559dcf08c33443b (patch)
treedcbd8bbe985766dad78231cde5c93373f40a1688 /include/qemu/sockets.h
parentsocket: Make errp the last parameter of socket_connect (diff)
downloadqemu-6dffc1f670c2d49b6b5d06b6a559dcf08c33443b.tar.gz
qemu-6dffc1f670c2d49b6b5d06b6a559dcf08c33443b.tar.xz
qemu-6dffc1f670c2d49b6b5d06b6a559dcf08c33443b.zip
socket: Make errp the last parameter of inet_connect_saddr
Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170421122710.15373-3-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 'include/qemu/sockets.h')
-rw-r--r--include/qemu/sockets.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h
index 567eef1a91..af285321b8 100644
--- a/include/qemu/sockets.h
+++ b/include/qemu/sockets.h
@@ -36,8 +36,9 @@ int inet_ai_family_from_address(InetSocketAddress *addr,
Error **errp);
InetSocketAddress *inet_parse(const char *str, Error **errp);
int inet_connect(const char *str, Error **errp);
-int inet_connect_saddr(InetSocketAddress *saddr, Error **errp,
- NonBlockingConnectHandler *callback, void *opaque);
+int inet_connect_saddr(InetSocketAddress *saddr,
+ NonBlockingConnectHandler *callback, void *opaque,
+ Error **errp);
NetworkAddressFamily inet_netfamily(int family);