commit | 3f9286b7214fbc7135d4fc223f07b0b30b91e2f1 | [log] [tgz] |
---|---|---|
author | Markus Armbruster <armbru@redhat.com> | Mon May 19 18:57:37 2014 +0200 |
committer | Gerd Hoffmann <kraxel@redhat.com> | Wed May 21 11:57:57 2014 +0200 |
tree | c3e451de4f349387aa6aa0d655fa3d7b15504054 | |
parent | c5fa6c86d0765f837515d1c10654c621724a77e0 [diff] |
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>