[Spice-devel] [PATCH spice-common 1/2] quic: constantify some variable

Marc-André Lureau marcandre.lureau at gmail.com
Sun Jun 18 22:14:53 UTC 2017


On Mon, Jun 12, 2017 at 11:21 AM Frediano Ziglio <fziglio at redhat.com> wrote:

> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
>

Reviewed-by: Marc-André Lureau <marcandre.lureau at redhat.com>



> ---
>  common/quic.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/common/quic.c b/common/quic.c
> index 5b00d65..59565ae 100644
> --- a/common/quic.c
> +++ b/common/quic.c
> @@ -173,13 +173,13 @@ struct Encoder {
>  };
>
>  /* target wait mask index */
> -static int wmimax = DEFwmimax;
> +static const int wmimax = DEFwmimax;
>
>  /* number of symbols to encode before increasing wait mask index */
> -static int wminext = DEFwminext;
> +static const int wminext = DEFwminext;
>
>  /* model evolution mode */
> -static int evol = DEFevol;
> +static const int evol = DEFevol;
>
>  /* bppmask[i] contains i ones as lsb-s */
>  static const unsigned long int bppmask[33] = {
> --
> 2.9.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
>
-- 
Marc-André Lureau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170618/5f474e4e/attachment.html>


More information about the Spice-devel mailing list