Re: [PATCH 13/15] Change spice_server_set_ticket() to use local 's'

[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>
> 
> Rather than using global 'reds' variable

Acked-by: Pavel Grunt <pgrunt@xxxxxxxxxx>
> ---
>  server/reds.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/reds.c b/server/reds.c
> index 3f7ee27..e47c694 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -3607,12 +3607,12 @@ SPICE_GNUC_VISIBLE int
> spice_server_set_ticket(SpiceServer *s,
>  {
>      spice_assert(reds == s);
>  
> -    if (reds_main_channel_connected(reds)) {
> +    if (reds_main_channel_connected(s)) {
>          if (fail_if_connected) {
>              return -1;
>          }
>          if (disconnect_if_connected) {
> -            reds_disconnect(reds);
> +            reds_disconnect(s);
>          }
>      }
>  
_______________________________________________
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]