diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-06-13 08:44:31 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-06-13 08:44:31 +0000 |
commit | c5b76b381081680633e2e0a91216507430409fb2 (patch) | |
tree | 193b8be4f6c9dac6664e03c7cdcf2bce8eb3bf16 /slirp/socket.c | |
parent | Enable -Werror by default for git builds on Linux hosts (diff) | |
download | qemu-kvm-c5b76b381081680633e2e0a91216507430409fb2.tar.gz qemu-kvm-c5b76b381081680633e2e0a91216507430409fb2.tar.bz2 qemu-kvm-c5b76b381081680633e2e0a91216507430409fb2.zip |
Fix mingw32 build warnings
Work around buffer and ioctlsocket argument type signedness problems
Suppress a prototype which is unused on mingw32
Expand a macro to avoid warnings from some GCC versions
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'slirp/socket.c')
-rw-r--r-- | slirp/socket.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/slirp/socket.c b/slirp/socket.c index 098132a1b..82d026c70 100644 --- a/slirp/socket.c +++ b/slirp/socket.c @@ -474,7 +474,12 @@ sorecvfrom(struct socket *so) udp_detach(so); } else { /* A "normal" UDP packet */ struct mbuf *m; - int len, n; + int len; +#ifdef _WIN32 + unsigned long n; +#else + int n; +#endif if (!(m = m_get())) return; m->m_data += IF_MAXLINKHDR; |