[Spice-devel] [PATCH 06/15] Change reds_handle_link() to take RedsState arg

Pavel Grunt pgrunt at redhat.com
Wed Jan 20 06:00:16 PST 2016


On Wed, 2016-01-20 at 13:25 +0000, Frediano Ziglio wrote:
> From: Jonathon Jongsma <jjongsma at redhat.com>
> 
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
>  server/reds.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/server/reds.c b/server/reds.c
> index 1923bf5..d8ee53d 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -1926,7 +1926,7 @@ static void reds_handle_other_links(RedsState
> *reds, RedLinkInfo *link)
>      reds_link_free(link);
>  }
>  
> -static void reds_handle_link(RedLinkInfo *link)
> +static void reds_handle_link(RedsState *reds, RedLinkInfo *link)
>  {
>      if (link->link_mess->channel_type == SPICE_CHANNEL_MAIN) {
>          reds_handle_main_link(reds, link);
> @@ -1982,7 +1982,7 @@ static void reds_handle_ticket(void *opaque)
>          }
>      }
>  
> -    reds_handle_link(link);
> +    reds_handle_link(reds, link);
>      goto end;
>  
>  error:
> @@ -2026,7 +2026,7 @@ static void reds_handle_auth_sasl_step(void
> *opaque)
>  
>      status = reds_sasl_handle_auth_step(link->stream,
> reds_handle_auth_sasl_steplen, link);
>      if (status == REDS_SASL_ERROR_OK) {
> -        reds_handle_link(link);
> +        reds_handle_link(reds, link);
>      } else if (status != REDS_SASL_ERROR_CONTINUE) {
>          reds_link_free(link);
>      }
> @@ -2066,7 +2066,7 @@ static void reds_handle_auth_sasl_start(void
> *opaque)
>  
>      status = reds_sasl_handle_auth_start(link->stream,
> reds_handle_auth_sasl_steplen, link);
>      if (status == REDS_SASL_ERROR_OK) {
> -        reds_handle_link(link);
> +        reds_handle_link(reds, link);
>      } else if (status != REDS_SASL_ERROR_CONTINUE) {
>          reds_link_free(link);
>      }


More information about the Spice-devel mailing list