Re: [PATCH 12/15] Change on_activating_ticketing() to take RedsState arg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2016-01-20 at 13:25 +0000, Frediano Ziglio wrote:
> From: Jonathon Jongsma <jjongsma@xxxxxxxxxx>
---
>  server/reds.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/reds.c b/server/reds.c
> index 91fab12..3f7ee27 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -2787,7 +2787,7 @@ static void reds_exit(void)
>  #endif
>  }
>  
> -static inline void on_activating_ticketing(void)
> +static inline void on_activating_ticketing(RedsState *reds)
>  {
>      if (!ticketing_enabled && reds_main_channel_connected(reds)) {
>          spice_warning("disconnecting");
> @@ -3616,7 +3616,7 @@ SPICE_GNUC_VISIBLE int
> spice_server_set_ticket(SpiceServer *s,
>          }
>      }
>  
> -    on_activating_ticketing();
> +    on_activating_ticketing(s);

considering there is an assert reds == s, Ack.

Pavel

>      ticketing_enabled = 1;
>      if (lifetime == 0) {
>          taTicket.expiration_time = INT_MAX;
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]