[Spice-devel] [PATCH spice-server 1/4] red-worker: don't pass 'dispatcher' as data for ClientCbs

Christophe Fergeau cfergeau at redhat.com
Wed Aug 30 06:56:06 UTC 2017


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Tue, Aug 29, 2017 at 05:28:06PM -0500, Jonathon Jongsma wrote:
> This parameter is not used since the dispatcher variable is accessed via
> GObject data (g_object_get_data(..., "dispatcher"))
> ---
>  server/red-worker.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/red-worker.c b/server/red-worker.c
> index 8fd964ea9..812a40b4b 100644
> --- a/server/red-worker.c
> +++ b/server/red-worker.c
> @@ -1345,7 +1345,7 @@ RedWorker* red_worker_new(QXLInstance *qxl,
>                                                  &worker->core);
>      channel = RED_CHANNEL(worker->cursor_channel);
>      red_channel_init_stat_node(channel, &worker->stat, "cursor_channel");
> -    red_channel_register_client_cbs(channel, client_cursor_cbs, dispatcher);
> +    red_channel_register_client_cbs(channel, client_cursor_cbs, NULL);
>      g_object_set_data(G_OBJECT(channel), "dispatcher", dispatcher);
>      reds_register_channel(reds, channel);
>  
> @@ -1356,7 +1356,7 @@ RedWorker* red_worker_new(QXLInstance *qxl,
>                                                    init_info.n_surfaces);
>      channel = RED_CHANNEL(worker->display_channel);
>      red_channel_init_stat_node(channel, &worker->stat, "display_channel");
> -    red_channel_register_client_cbs(channel, client_display_cbs, dispatcher);
> +    red_channel_register_client_cbs(channel, client_display_cbs, NULL);
>      g_object_set_data(G_OBJECT(channel), "dispatcher", dispatcher);
>      reds_register_channel(reds, channel);
>  
> -- 
> 2.13.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list