diff options
author | Ashijeet Acharya <ashijeetacharya@gmail.com> | 2016-10-25 18:33:58 +0530 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-10-31 16:49:13 +0100 |
commit | 89cadc9dc0f7c6a48c243bf7d9ad983a9b667426 (patch) | |
tree | 5e11d6f3be43eff7bc5b236f3ec1cf193c7129fd /util/qemu-sockets.c | |
parent | 89dbe18089127cf90993359096b659ea6f819848 (diff) | |
download | qemu-89cadc9dc0f7c6a48c243bf7d9ad983a9b667426.zip qemu-89cadc9dc0f7c6a48c243bf7d9ad983a9b667426.tar.gz qemu-89cadc9dc0f7c6a48c243bf7d9ad983a9b667426.tar.bz2 |
util/qemu-sockets: Make inet_connect_saddr() public
Make inet_connect_saddr() in util/qemu-sockets.c public in order to be
able to use it with InetSocketAddress sockets outside of
util/qemu-sockets.c independently.
Signed-off-by: Ashijeet Acharya <ashijeetacharya@gmail.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'util/qemu-sockets.c')
-rw-r--r-- | util/qemu-sockets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index 4cef549..31f7fc6 100644 --- a/util/qemu-sockets.c +++ b/util/qemu-sockets.c @@ -412,8 +412,8 @@ static struct addrinfo *inet_parse_connect_saddr(InetSocketAddress *saddr, * function succeeds, callback will be called when the connection * completes, with the file descriptor on success, or -1 on error. */ -static int inet_connect_saddr(InetSocketAddress *saddr, Error **errp, - NonBlockingConnectHandler *callback, void *opaque) +int inet_connect_saddr(InetSocketAddress *saddr, Error **errp, + NonBlockingConnectHandler *callback, void *opaque) { Error *local_err = NULL; struct addrinfo *res, *e; |