From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M163g-00013A-IA for qemu-devel@nongnu.org; Mon, 04 May 2009 17:50:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M163b-00012y-0u for qemu-devel@nongnu.org; Mon, 04 May 2009 17:50:43 -0400 Received: from [199.232.76.173] (port=55293 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M163a-00012v-U5 for qemu-devel@nongnu.org; Mon, 04 May 2009 17:50:38 -0400 Received: from main.gmane.org ([80.91.229.2]:34805 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M163a-0004ea-9Q for qemu-devel@nongnu.org; Mon, 04 May 2009 17:50:38 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M163R-0003KE-Gy for qemu-devel@nongnu.org; Mon, 04 May 2009 21:50:29 +0000 Received: from 204.147.152.1 ([204.147.152.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 May 2009 21:50:29 +0000 Received: from void by 204.147.152.1 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 May 2009 21:50:29 +0000 From: Consul Date: Mon, 04 May 2009 14:50:19 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: news Subject: [Qemu-devel] Silence passing arg x of `xxxx' from incompatible pointer type warnings on Windows List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Silence "passing arg x of `xxxx' from incompatible pointer type" warnings on Windows. Signed-off-by: Alex Ivanov --- migration-tcp.c | 2 +- nbd.c | 2 +- slirp/misc.c | 2 +- slirp/slirp.c | 2 +- slirp/socket.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/migration-tcp.c b/migration-tcp.c index d9c4c98..fcd4d5f 100644 --- a/migration-tcp.c +++ b/migration-tcp.c @@ -58,7 +58,7 @@ static void tcp_wait_for_connect(void *opaque) dprintf("connect completed\n"); do { - ret = getsockopt(s->fd, SOL_SOCKET, SO_ERROR, &val, &valsize); + ret = getsockopt(s->fd, SOL_SOCKET, SO_ERROR, (void*) &val, &valsize); } while (ret == -1 && (s->get_error(s)) == EINTR); if (ret < 0) { diff --git a/nbd.c b/nbd.c index 1586ea7..6659eef 100644 --- a/nbd.c +++ b/nbd.c @@ -169,7 +169,7 @@ int tcp_socket_incoming(const char *address, uint16_t port) memcpy(&addr.sin_addr.s_addr, &in, sizeof(in)); opt = 1; - if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1) { + if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (void*) &opt, sizeof(opt)) == -1) { goto error; } diff --git a/slirp/misc.c b/slirp/misc.c index 0137e75..7420725 100644 --- a/slirp/misc.c +++ b/slirp/misc.c @@ -799,7 +799,7 @@ fd_block(int fd) #ifdef FIONBIO int opt = 0; - ioctlsocket(fd, FIONBIO, &opt); + ioctlsocket(fd, FIONBIO, (void*) &opt); #else int opt; diff --git a/slirp/slirp.c b/slirp/slirp.c index 4ca35b2..4b744f8 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, (void*) &ret, 0, 0); if (ret < 0) { /* XXXXX Must fix, zero bytes is a NOP */ if (errno == EAGAIN || errno == EWOULDBLOCK || diff --git a/slirp/socket.c b/slirp/socket.c index 098132a..a5313e5 100644 --- a/slirp/socket.c +++ b/slirp/socket.c @@ -485,7 +485,7 @@ sorecvfrom(struct socket *so) */ len = M_FREEROOM(m); /* if (so->so_fport != htons(53)) { */ - ioctlsocket(so->s, FIONREAD, &n); + ioctlsocket(so->s, FIONREAD, (void*) &n); if (n > len) { n = (m->m_data - m->m_dat) + m->m_len + n + 1; -- 1.6.2.2.1669.g7eaf8