[Spice-devel] [PATCH 14/18] worker:fix constant

Fabiano FidĂȘncio fidencio at redhat.com
Mon Nov 23 10:07:21 PST 2015


On Mon, Nov 23, 2015 at 6:02 PM, Frediano Ziglio <fziglio at redhat.com> wrote:
> Use mnemonic instead of constant to return enumeration value
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  server/red_worker.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/server/red_worker.c b/server/red_worker.c
> index 9ac7e29..becd42f 100644
> --- a/server/red_worker.c
> +++ b/server/red_worker.c
> @@ -1492,7 +1492,7 @@ static FillBitsType fill_bits(DisplayChannelClient *dcc, SpiceMarshaller *m,
>          spice_error("invalid image type %u", image.descriptor.type);
>      }
>      pthread_mutex_unlock(&dcc->pixmap_cache->lock);
> -    return 0;
> +    return FILL_BITS_TYPE_INVALID;
>  }
>
>  static void fill_mask(RedChannelClient *rcc, SpiceMarshaller *m,
> --
> 2.4.3
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel

Acked-by: Fabiano FidĂȘncio <fidencio at redhat.com>


More information about the Spice-devel mailing list