From 0a656f5f21553b9b69392d89e28d18361a0e3405 Mon Sep 17 00:00:00 2001 From: malc Date: Thu, 21 May 2009 05:26:23 +0400 Subject: 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 --- slirp/slirp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slirp') 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 || -- cgit v1.1