aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--migration-tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration-tcp.c b/migration-tcp.c
index a2272a7287..698cd05d97 100644
--- a/migration-tcp.c
+++ b/migration-tcp.c
@@ -173,7 +173,7 @@ static void tcp_wait_for_connect(void *opaque)
{
FdMigrationState *s = opaque;
int val, ret;
- int valsize = sizeof(val);
+ socklen_t valsize = sizeof(val);
dprintf("connect completed\n");
do {