]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-socket: Clean up inet_connect_opts()
authorMarkus Armbruster <armbru@redhat.com>
Mon, 19 May 2014 16:57:37 +0000 (18:57 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 21 May 2014 09:57:57 +0000 (11:57 +0200)
commit3f9286b7214fbc7135d4fc223f07b0b30b91e2f1
treec3e451de4f349387aa6aa0d655fa3d7b15504054
parentc5fa6c86d0765f837515d1c10654c621724a77e0
qemu-socket: Clean up inet_connect_opts()

Separate the search for a working addrinfo from the code that does
something with it.  Makes for a clearer search loop.

Use a local Error * to simplify resetting the error in the search
loop.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
util/qemu-sockets.c