[Spice-devel] [PATCH spice-server] Constify video_codec_caps
Uri Lublin
uril at redhat.com
Mon Oct 31 13:26:44 UTC 2016
On 10/31/2016 01:25 PM, Frediano Ziglio wrote:
> 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,
>
Ack.
More information about the Spice-devel
mailing list