util/qemu-sockets.c: Avoid unused variable warnings 36/29436/1
authorPeter Maydell <peter.maydell@linaro.org>
Sat, 7 Jun 2014 16:48:03 +0000 (17:48 +0100)
committerGiWoong Kim <giwoong.kim@samsung.com>
Tue, 28 Oct 2014 03:47:50 +0000 (12:47 +0900)
commit378c2c2d99368977470b65be6d7aadf3b35e6e5d
tree172b6dd2ae454d251ad78107d6f6c17aaebdd2f9
parent1e15df26c1ded6a8c8bd5d27b486e93526b16804
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.

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