summaryrefslogtreecommitdiffstats
path: root/slirp
diff options
context:
space:
mode:
authormalc2009-05-21 03:26:23 +0200
committermalc2009-05-21 03:30:51 +0200
commit0a656f5f21553b9b69392d89e28d18361a0e3405 (patch)
tree4b0474b563efb39f9c131885e6cdc1bae3516601 /slirp
parentkvm: add error message for when SMP is requested (diff)
downloadqemu-0a656f5f21553b9b69392d89e28d18361a0e3405.tar.gz
qemu-0a656f5f21553b9b69392d89e28d18361a0e3405.tar.xz
qemu-0a656f5f21553b9b69392d89e28d18361a0e3405.zip
Cast pointer arguments of get/setsockopt, send to void * to keep GCC
from producing a warning about pointer type mismatches with Winsock Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'slirp')
-rw-r--r--slirp/slirp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/slirp.c b/slirp/slirp.c
index 4ca35b28f6..04d3dede23 100644
--- a/slirp/slirp.c
+++ b/slirp/slirp.c
@@ -468,7 +468,7 @@ void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds)
/* Connected */
so->so_state &= ~SS_ISFCONNECTING;
- ret = send(so->s, &ret, 0, 0);
+ ret = send(so->s, (const void *) &ret, 0, 0);
if (ret < 0) {
/* XXXXX Must fix, zero bytes is a NOP */
if (errno == EAGAIN || errno == EWOULDBLOCK ||