]> git.proxmox.com Git - mirror_qemu.git/commit - util/qemu-sockets.c
util/qemu-sockets.c: Avoid unused variable warnings
authorPeter Maydell <peter.maydell@linaro.org>
Sat, 7 Jun 2014 16:48:03 +0000 (17:48 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 10 Jun 2014 15:39:34 +0000 (19:39 +0400)
commitf9b5426fd50a60d9fda2c061c24f60537666e9af
tree433c91479ca38bd6eb6cf38b3297b794a2953460
parent71795856881e037e0f0384b556c5b65f211662ad
util/qemu-sockets.c: Avoid unused variable warnings

The 'on' variable is never used, and 'off' is only used
if IPV6_V6ONLY is defined; delete 'on' and move 'off' to
the point where it is used. This avoids warnings from
clang 3.4.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
util/qemu-sockets.c