]> git.proxmox.com Git - mirror_qemu.git/commit
sheepdog: Use SocketAddress and socket_connect()
authorMarkus Armbruster <armbru@redhat.com>
Mon, 6 Mar 2017 19:00:42 +0000 (20:00 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 7 Mar 2017 13:53:28 +0000 (14:53 +0100)
commit8ecc2f9eab17e203e8a64726b7806a9442b451c0
treec084720efdebeb51a069aa2ae18d395422509ab0
parent36bcac16fdd6ecb75314db06171f54dcd400ab8c
sheepdog: Use SocketAddress and socket_connect()

sd_parse_uri() builds a string from host and port parts for
inet_connect().  inet_connect() parses it into host, port and options.
Whether this gets exactly the same host, port and no options for all
inputs is not obvious.

Cut out the string middleman and build a SocketAddress for
socket_connect() instead.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c