]> git.proxmox.com Git - qemu.git/blobdiff - nbd.c
Avoid asprintf() which is not available on mingw
[qemu.git] / nbd.c
diff --git a/nbd.c b/nbd.c
index dc0adf90ed1e77dff41ea1b221cb63b967d0c973..0dd60c5f4c72392fabd2a1dd803e6b7ebbee7ab5 100644 (file)
--- a/nbd.c
+++ b/nbd.c
@@ -162,7 +162,7 @@ int tcp_socket_outgoing(const char *address, uint16_t port)
 
 int tcp_socket_outgoing_spec(const char *address_and_port)
 {
-    return inet_connect(address_and_port, true, NULL);
+    return inet_connect(address_and_port, true, NULL, NULL);
 }
 
 int tcp_socket_incoming(const char *address, uint16_t port)