[Spice-devel] [PATCH] remove only written peer_minor_version field in RedsState

Christophe Fergeau cfergeau at redhat.com
Tue May 17 15:15:54 UTC 2016


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Mon, May 16, 2016 at 05:13:36PM +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  server/reds-private.h | 1 -
>  server/reds.c         | 3 ---
>  2 files changed, 4 deletions(-)
> 
> diff --git a/server/reds-private.h b/server/reds-private.h
> index 74a251b..97ea0ba 100644
> --- a/server/reds-private.h
> +++ b/server/reds-private.h
> @@ -140,7 +140,6 @@ struct RedsState {
>      pthread_mutex_t stat_lock;
>      RedsStatValue roundtrip_stat;
>  #endif
> -    int peer_minor_version;
>      int allow_multiple_clients;
>  
>      RedsClientMonitorsConfig client_monitors_config;
> diff --git a/server/reds.c b/server/reds.c
> index 1909e6e..988858d 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -2356,7 +2356,6 @@ static void reds_handle_link_error(void *opaque, int err)
>  static void reds_handle_read_header_done(void *opaque)
>  {
>      RedLinkInfo *link = (RedLinkInfo *)opaque;
> -    RedsState *reds = link->reds;
>      SpiceLinkHeader *header = &link->link_header;
>  
>      header->major_version = GUINT32_FROM_LE(header->major_version);
> @@ -2379,8 +2378,6 @@ static void reds_handle_read_header_done(void *opaque)
>          return;
>      }
>  
> -    reds->peer_minor_version = header->minor_version;
> -
>      if (header->size < sizeof(SpiceLinkMess)) {
>          reds_send_link_error(link, SPICE_LINK_ERR_INVALID_DATA);
>          spice_warning("bad size %u", header->size);
> -- 
> 2.7.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160517/504f21e4/attachment.sig>


More information about the Spice-devel mailing list