diff options
author | Fam Zheng | 2017-04-21 14:26:57 +0200 |
---|---|---|
committer | Markus Armbruster | 2017-04-24 09:12:59 +0200 |
commit | 226799cec5fa51681a5b8c24d1bebdd735c14a8c (patch) | |
tree | a83fac455d9e44cf30a9ffcc8c644b9d433c93e7 /include/qemu | |
parent | util/error: Fix leak in error_vprepend() (diff) | |
download | qemu-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 'include/qemu')
-rw-r--r-- | include/qemu/sockets.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h index 7842f6d150..567eef1a91 100644 --- a/include/qemu/sockets.h +++ b/include/qemu/sockets.h @@ -45,8 +45,8 @@ int unix_listen(const char *path, char *ostr, int olen, Error **errp); int unix_connect(const char *path, Error **errp); SocketAddress *socket_parse(const char *str, Error **errp); -int socket_connect(SocketAddress *addr, Error **errp, - NonBlockingConnectHandler *callback, void *opaque); +int socket_connect(SocketAddress *addr, NonBlockingConnectHandler *callback, + void *opaque, Error **errp); int socket_listen(SocketAddress *addr, Error **errp); void socket_listen_cleanup(int fd, Error **errp); int socket_dgram(SocketAddress *remote, SocketAddress *local, Error **errp); |