From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33775 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDGw2-0003Ur-Ut for qemu-devel@nongnu.org; Tue, 02 Nov 2010 09:30:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDFU8-0004vd-In for qemu-devel@nongnu.org; Tue, 02 Nov 2010 07:57:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDFU8-0004vC-C4 for qemu-devel@nongnu.org; Tue, 02 Nov 2010 07:57:04 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oA2Bv26G012351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 2 Nov 2010 07:57:03 -0400 From: Gerd Hoffmann Date: Tue, 2 Nov 2010 12:56:58 +0100 Message-Id: <1288699019-18711-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1288699019-18711-1-git-send-email-kraxel@redhat.com> References: <1288699019-18711-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] spice-core: fix warning when building with spice < 0.6.0 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- ui/spice-core.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 45807ed..e97a72d 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -240,7 +240,7 @@ void qemu_spice_init(void) char *x509_key_file = NULL, *x509_cert_file = NULL, *x509_cacert_file = NULL; - int port, tls_port, len, addr_flags, streaming_video; + int port, tls_port, len, addr_flags; spice_image_compression_t compression; spice_wan_compression_t wan_compr; @@ -344,7 +344,7 @@ void qemu_spice_init(void) str = qemu_opt_get(opts, "streaming-video"); if (str) { - streaming_video = parse_stream_video(str); + int streaming_video = parse_stream_video(str); spice_server_set_streaming_video(spice_server, streaming_video); } -- 1.7.1