Browse Source

util: drop qemu_socket_set_block()

Now it's unused.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
pull/305/head
Vladimir Sementsov-Ogievskiy 7 months ago
committed by Daniel P. Berrangé
parent
commit
5d1d32ce9d
  1. 1
      include/qemu/sockets.h
  2. 6
      util/oslib-posix.c
  3. 7
      util/oslib-win32.c

1
include/qemu/sockets.h

@ -46,7 +46,6 @@ ssize_t qemu_send_full(int s, const void *buf, size_t count)
G_GNUC_WARN_UNUSED_RESULT;
int socket_set_cork(int fd, int v);
int socket_set_nodelay(int fd);
void qemu_socket_set_block(int fd);
int socket_set_fast_reuse(int fd);
#ifdef WIN32

6
util/oslib-posix.c

@ -265,12 +265,6 @@ bool qemu_set_blocking(int fd, bool block, Error **errp)
return true;
}
void qemu_socket_set_block(int fd)
{
g_unix_set_fd_nonblocking(fd, false, NULL);
}
int socket_set_fast_reuse(int fd)
{
int val = 1, ret;

7
util/oslib-win32.c

@ -195,13 +195,6 @@ bool qemu_set_blocking(int fd, bool block, Error **errp)
return true;
}
void qemu_socket_set_block(int fd)
{
unsigned long opt = 0;
qemu_socket_unselect(fd, NULL);
ioctlsocket(fd, FIONBIO, &opt);
}
int socket_set_fast_reuse(int fd)
{
/* Enabling the reuse of an endpoint that was used by a socket still in

Loading…
Cancel
Save