mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Drop qemu_foo() socket API wrapper
The socket API wrappers were initially introduced in commit00aa0040
("Wrap recv to avoid warnings"), but made redundant with commita2d96af4
("osdep: add wrappers for socket functions") which fixes the win32 declarations and thus removed the earlier warnings. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
8ef2513d87
commit
e7b7942822
15 changed files with 45 additions and 64 deletions
|
@ -39,7 +39,7 @@ static const char *hw_version = QEMU_HW_VERSION;
|
|||
int socket_set_cork(int fd, int v)
|
||||
{
|
||||
#if defined(SOL_TCP) && defined(TCP_CORK)
|
||||
return qemu_setsockopt(fd, SOL_TCP, TCP_CORK, &v, sizeof(v));
|
||||
return setsockopt(fd, SOL_TCP, TCP_CORK, &v, sizeof(v));
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
|
@ -48,7 +48,7 @@ int socket_set_cork(int fd, int v)
|
|||
int socket_set_nodelay(int fd)
|
||||
{
|
||||
int v = 1;
|
||||
return qemu_setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &v, sizeof(v));
|
||||
return setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &v, sizeof(v));
|
||||
}
|
||||
|
||||
int qemu_madvise(void *addr, size_t len, int advice)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue