[Spice-devel] [PATCH 13/15] Change spice_server_set_ticket() to use local 's'

Pavel Grunt pgrunt at redhat.com
Wed Jan 20 06:01:18 PST 2016


On Wed, 2016-01-20 at 13:25 +0000, Frediano Ziglio wrote:
> From: Jonathon Jongsma <jjongsma at redhat.com>
> 
> Rather than using global 'reds' variable

Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
>  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);
>          }
>      }
>  


More information about the Spice-devel mailing list