Message ID | 1402416523-13212-10-git-send-email-mjt@msgid.tls.msk.ru |
---|---|
State | Accepted |
Commit | f9b5426fd50a60d9fda2c061c24f60537666e9af |
Headers | show |
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index 627e609..e3d29ee 100644 --- a/util/qemu-sockets.c +++ b/util/qemu-sockets.c @@ -30,8 +30,6 @@ # define AI_ADDRCONFIG 0 #endif -static const int on=1, off=0; - /* used temporarily until all users are converted to QemuOpts */ QemuOptsList socket_optslist = { .name = "socket", @@ -159,6 +157,7 @@ int inet_listen_opts(QemuOpts *opts, int port_offset, Error **errp) #ifdef IPV6_V6ONLY if (e->ai_family == PF_INET6) { /* listen on both ipv4 and ipv6 */ + const int off = 0; qemu_setsockopt(slisten, IPPROTO_IPV6, IPV6_V6ONLY, &off, sizeof(off)); }