aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-05-21 05:26:23 +0400
committermalc <av1474@comtv.ru>2009-05-21 05:30:51 +0400
commit6618b7dae6f1588c25f1bddcefc083fbc8321e9d (patch)
tree13a420f0d5e449e9c8e8070ec0da5954328b2f18
parenta99bd9e0f183598bc964117c00d031ff97f1e868 (diff)
downloadslirp-6618b7dae6f1588c25f1bddcefc083fbc8321e9d.zip
slirp-6618b7dae6f1588c25f1bddcefc083fbc8321e9d.tar.gz
slirp-6618b7dae6f1588c25f1bddcefc083fbc8321e9d.tar.bz2
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>
-rw-r--r--slirp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp.c b/slirp.c
index 7402389..deb5f1c 100644
--- a/slirp.c
+++ b/slirp.c
@@ -473,7 +473,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 ||