[Spice-devel] [PATCH 11/18] server/red_worker: small cleanup with worker alias

Marc-André Lureau marcandre.lureau at gmail.com
Tue Feb 8 13:00:52 PST 2011


Looks like it should be squashed with patch 05.

On Mon, Feb 7, 2011 at 7:20 PM, Alon Levy <alevy at redhat.com> wrote:
> ---
>  server/red_worker.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/server/red_worker.c b/server/red_worker.c
> index fb04ed9..e8849a7 100644
> --- a/server/red_worker.c
> +++ b/server/red_worker.c
> @@ -8166,10 +8166,10 @@ static void red_send_local_cursor(CursorChannel *cursor_channel, LocalCursor *cu
>     RedChannel *channel;
>     SpiceMsgCursorSet cursor_set;
>     AddBufInfo info;
> -    RedWorker *worker = cursor_channel->common.worker;
> +    RedWorker *worker;
>
>     ASSERT(cursor_channel);
> -
> +    worker = cursor_channel->common.worker;
>     channel = &cursor_channel->common.base;
>     red_channel_init_send_data(channel, SPICE_MSG_CURSOR_SET, &cursor->base.pipe_data);
>     cursor_set.position = cursor->position;
> @@ -8181,7 +8181,7 @@ static void red_send_local_cursor(CursorChannel *cursor_channel, LocalCursor *cu
>
>     red_channel_begin_send_message(channel);
>
> -    red_release_cursor(cursor_channel->common.worker, (CursorItem *)cursor);
> +    red_release_cursor(worker, (CursorItem *)cursor);
>  }
>
>  static void cursor_channel_send_migrate(CursorChannel *cursor_channel)
> --
> 1.7.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>



-- 
Marc-André Lureau


More information about the Spice-devel mailing list