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

Jonathon Jongsma jjongsma at redhat.com
Wed Jan 27 09:43:40 PST 2016


Acked-by: Jonathon Jongsma <jjongsma at redhat.com>

On Wed, 2016-01-27 at 16:09 +0000, Frediano Ziglio wrote:
> 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
>  };


More information about the Spice-devel mailing list