[Spice-devel] [PATCH spice-server] Constify video_codec_caps

Frediano Ziglio fziglio at redhat.com
Mon Oct 31 11:25:42 UTC 2016


This remove a writable global variable.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/reds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/reds.c b/server/reds.c
index 19ca568..c40ff1e 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3599,7 +3599,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,
-- 
2.7.4



More information about the Spice-devel mailing list