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 | 6618b7dae6f1588c25f1bddcefc083fbc8321e9d (patch) | |
tree | 13a420f0d5e449e9c8e8070ec0da5954328b2f18 | |
parent | a99bd9e0f183598bc964117c00d031ff97f1e868 (diff) | |
download | slirp-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 || |