diff --git a/migration-tcp.c b/migration-tcp.c index a2272a72878eb6c2aee1ba95e94695ad333d3e3d..698cd05d97a98cea5ade430c6236da840eaaf74b 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 {