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 --- migration-tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'migration-tcp.c') diff --git a/migration-tcp.c b/migration-tcp.c index d9c4c986db..1f4358ee5f 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) { -- cgit v1.2.1