From: Consul <void@aleksoft.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Silence passing arg x of `xxxx' from incompatible pointer type warnings on Windows
Date: Mon, 04 May 2009 14:50:19 -0700 [thread overview]
Message-ID: <gtnnus$fk9$1@ger.gmane.org> (raw)
Silence "passing arg x of `xxxx' from incompatible pointer type" warnings on Windows.
Signed-off-by: Alex Ivanov <void@aleksoft.net>
---
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
next reply other threads:[~2009-05-04 21:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-04 21:50 Consul [this message]
2009-05-06 11:43 ` [Qemu-devel] Silence passing arg x of `xxxx' from incompatible pointer type warnings on Windows Johannes Schindelin
2009-05-06 18:55 ` [Qemu-devel] " Consul
2009-05-06 20:27 ` Consul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='gtnnus$fk9$1@ger.gmane.org' \
--to=void@aleksoft.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.