summaryrefslogtreecommitdiff
path: root/savevm.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-06-13 08:44:31 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-06-13 08:44:31 +0000
commitc5b76b381081680633e2e0a91216507430409fb2 (patch)
tree193b8be4f6c9dac6664e03c7cdcf2bce8eb3bf16 /savevm.c
parent487fefdb1e94098ea734cb10e9e17d5860dde2d1 (diff)
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 'savevm.c')
-rw-r--r--savevm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/savevm.c b/savevm.c
index cae711762..61edd7e45 100644
--- a/savevm.c
+++ b/savevm.c
@@ -190,7 +190,7 @@ static int socket_get_buffer(void *opaque, uint8_t *buf, int64_t pos, int size)
ssize_t len;
do {
- len = recv(s->fd, buf, size, 0);
+ len = recv(s->fd, (void *)buf, size, 0);
} while (len == -1 && socket_error() == EINTR);
if (len == -1)