summaryrefslogtreecommitdiffstats
path: root/util/oslib-win32.c
diff options
context:
space:
mode:
authorDaniel P. Berrange2016-03-09 17:45:04 +0100
committerDaniel P. Berrange2016-03-10 18:19:07 +0100
commit317856cac87b2aa15d03982262a436f1d3d0a2b3 (patch)
tree33d0b8af0358f6c83dbb36f487d50a736e76a849 /util/oslib-win32.c
parentchar: remove qemu_chr_finish_socket_connection method (diff)
downloadqemu-317856cac87b2aa15d03982262a436f1d3d0a2b3.tar.gz
qemu-317856cac87b2aa15d03982262a436f1d3d0a2b3.tar.xz
qemu-317856cac87b2aa15d03982262a436f1d3d0a2b3.zip
char: remove socket_try_connect method
The qemu_chr_open_socket_fd() method multiplexes three different actions into one method. The socket_try_connect() method is one of its callers, but it only ever want one specific action performed. By inlining that action into socket_try_connect() we see that there is not in fact any failure scenario, so there is not even any reason for socket_try_connect to exist. Just inline the asynchronous connection attempts directly at the places that need them. This shortens & clarifies the code. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'util/oslib-win32.c')
0 files changed, 0 insertions, 0 deletions