g_object_get require the object to be no-const.
Avoid compiler error if statistics are enabled

Signed-off-by: Frediano Ziglio <fzig...@redhat.com>
---
 server/display-channel.c | 2 +-
 server/display-channel.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/display-channel.c b/server/display-channel.c
index 51d297c..b82af61 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -104,7 +104,7 @@ void display_channel_compress_stats_reset(DisplayChannel 
*display)
     image_encoder_shared_stat_reset(&display->priv->encoder_shared_data);
 }
 
-void display_channel_compress_stats_print(const DisplayChannel 
*display_channel)
+void display_channel_compress_stats_print(DisplayChannel *display_channel)
 {
 #ifdef COMPRESS_STAT
     uint32_t id;
diff --git a/server/display-channel.h b/server/display-channel.h
index 48b4105..d782969 100644
--- a/server/display-channel.h
+++ b/server/display-channel.h
@@ -231,7 +231,7 @@ void                       display_channel_set_video_codecs 
         (DisplayCha
                                                                       GArray 
*video_codecs);
 int                        display_channel_get_stream_video          
(DisplayChannel *display);
 int                        display_channel_get_streams_timeout       
(DisplayChannel *display);
-void                       display_channel_compress_stats_print      (const 
DisplayChannel *display);
+void                       display_channel_compress_stats_print      
(DisplayChannel *display);
 void                       display_channel_compress_stats_reset      
(DisplayChannel *display);
 void                       display_channel_surface_unref             
(DisplayChannel *display,
                                                                       uint32_t 
surface_id);
-- 
2.7.4

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to