[Spice-devel] [PATCH 3/5] Constification

Frediano Ziglio fziglio at redhat.com
Wed Jan 27 08:09:48 PST 2016


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

diff --git a/common/quic.c b/common/quic.c
index 0c5fc1c..0e6c948 100644
--- a/common/quic.c
+++ b/common/quic.c
@@ -540,7 +540,7 @@ static inline void encode_ones(Encoder *encoder, unsigned int n)
 
 #define MELCSTATES 32 /* number of melcode states */
 
-static int J[MELCSTATES] = {
+static const int J[MELCSTATES] = {
     0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6, 7,
     7, 8, 9, 10, 11, 12, 13, 14, 15
 };
-- 
2.4.3



More information about the Spice-devel mailing list