mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00: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:
@ -35,25 +35,6 @@ int qemu_pipe(int pipefd[2]);
|
||||
int qemu_openpty_raw(int *aslave, char *pty_name);
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
/* MinGW needs type casts for the 'buf' and 'optval' arguments. */
|
||||
#define qemu_getsockopt(sockfd, level, optname, optval, optlen) \
|
||||
getsockopt(sockfd, level, optname, (void *)optval, optlen)
|
||||
#define qemu_setsockopt(sockfd, level, optname, optval, optlen) \
|
||||
setsockopt(sockfd, level, optname, (const void *)optval, optlen)
|
||||
#define qemu_recv(sockfd, buf, len, flags) recv(sockfd, (void *)buf, len, flags)
|
||||
#define qemu_sendto(sockfd, buf, len, flags, destaddr, addrlen) \
|
||||
sendto(sockfd, (const void *)buf, len, flags, destaddr, addrlen)
|
||||
#else
|
||||
#define qemu_getsockopt(sockfd, level, optname, optval, optlen) \
|
||||
getsockopt(sockfd, level, optname, optval, optlen)
|
||||
#define qemu_setsockopt(sockfd, level, optname, optval, optlen) \
|
||||
setsockopt(sockfd, level, optname, optval, optlen)
|
||||
#define qemu_recv(sockfd, buf, len, flags) recv(sockfd, buf, len, flags)
|
||||
#define qemu_sendto(sockfd, buf, len, flags, destaddr, addrlen) \
|
||||
sendto(sockfd, buf, len, flags, destaddr, addrlen)
|
||||
#endif
|
||||
|
||||
void cpu_exec_init_all(void);
|
||||
void cpu_exec_step_atomic(CPUState *cpu);
|
||||
|
||||
|
Reference in New Issue
Block a user