]> git.proxmox.com Git - mirror_qemu.git/commit - net/socket.c
osdep: remove use of socket_error() from all code
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 7 Mar 2016 20:36:03 +0000 (20:36 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 10 Mar 2016 17:19:34 +0000 (17:19 +0000)
commitb16a44e13e89ee397a3d9a9e3cfa1605c3c1dc68
tree894551b8e7841e2fddfd790c204b7ef453d6f2eb
parenta2d96af4bb267bd1844f71f593d07273c7fc134c
osdep: remove use of socket_error() from all code

Now that QEMU wraps the Win32 sockets methods to automatically
set errno upon failure, there is no reason for callers to use
the socket_error() method. They can rely on accessing errno
even on Win32. Remove all use of socket_error() from general
code, leaving it as a static method in oslib-win32.c only.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
block/sheepdog.c
include/sysemu/os-posix.h
include/sysemu/os-win32.h
io/channel-socket.c
migration/qemu-file-unix.c
migration/tcp.c
net/socket.c
slirp/tcp_input.c
util/oslib-win32.c
util/qemu-coroutine-io.c
util/qemu-sockets.c