]> git.proxmox.com Git - qemu.git/blobdiff - migration-tcp.c
Makefile: Forbid out-of-tree build from a source tree that has been built in
[qemu.git] / migration-tcp.c
index 5e54e68360cb6892ee623a67628214cb5881d842..46f6ac545cb08b9347e7e020017b58eac7d22a73 100644 (file)
@@ -111,18 +111,15 @@ out2:
     close(s);
 }
 
-int tcp_start_incoming_migration(const char *host_port, Error **errp)
+void tcp_start_incoming_migration(const char *host_port, Error **errp)
 {
     int s;
 
     s = inet_listen(host_port, NULL, 256, SOCK_STREAM, 0, errp);
-
     if (s < 0) {
-        return -1;
+        return;
     }
 
     qemu_set_fd_handler2(s, NULL, tcp_accept_incoming_migration, NULL,
                          (void *)(intptr_t)s);
-
-    return 0;
 }