diff options
author | malc <av1474@comtv.ru> | 2009-05-21 05:26:23 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-05-21 05:30:51 +0400 |
commit | 0a656f5f21553b9b69392d89e28d18361a0e3405 (patch) | |
tree | 4b0474b563efb39f9c131885e6cdc1bae3516601 /slirp | |
parent | 9f8fd69460b30bc3817deabd1d76455248b76da2 (diff) | |
download | hqemu-0a656f5f21553b9b69392d89e28d18361a0e3405.zip hqemu-0a656f5f21553b9b69392d89e28d18361a0e3405.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/slirp.c b/slirp/slirp.c index 4ca35b2..04d3ded 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 || |