[Spice-commits] server/reds.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Mon Oct 31 13:29:03 UTC 2016


 server/reds.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ed9d759ba44ca090808c4273c33c3c47ac6d27e9
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Mon Oct 31 07:15:51 2016 +0000

    Constify video_codec_caps
    
    This remove a writable global variable.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Uri Lublin <uril at redhat.com>

diff --git a/server/reds.c b/server/reds.c
index eeb6010..c235421 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3602,7 +3602,7 @@ static const EnumNames video_codec_names[] = {
     {0, NULL},
 };
 
-static int video_codec_caps[] = {
+static const int video_codec_caps[] = {
     SPICE_DISPLAY_CAP_CODEC_MJPEG,
     SPICE_DISPLAY_CAP_CODEC_VP8,
     SPICE_DISPLAY_CAP_CODEC_H264,


More information about the Spice-commits mailing list