]> git.proxmox.com Git - mirror_qemu.git/commitdiff
spice-core: fix warning when building with spice < 0.6.0
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 2 Nov 2010 11:21:50 +0000 (12:21 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 2 Nov 2010 11:42:54 +0000 (12:42 +0100)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-core.c

index 45807ed6e1f467b518872f28416adb3ad5e267a0..e97a72d3d648d99f3a988eccf9b0d9a27cd19456 100644 (file)
@@ -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);
     }