[Spice-devel] [PATCH spice-server 1/4] red-worker: don't pass 'dispatcher' as data for ClientCbs
Jonathon Jongsma
jjongsma at redhat.com
Tue Aug 29 22:28:06 UTC 2017
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
More information about the Spice-devel
mailing list