Avoid SpiceDisplay* -> gpointer* -> gpointer -> SpiceDisplay* cast chain. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- src/spice-widget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spice-widget.c b/src/spice-widget.c index ecd29e9d..c794350a 100644 --- a/src/spice-widget.c +++ b/src/spice-widget.c @@ -713,13 +713,13 @@ spice_display_constructed(GObject *gobject) list = spice_session_get_channels(d->session); for (it = g_list_first(list); it != NULL; it = g_list_next(it)) { if (SPICE_IS_MAIN_CHANNEL(it->data)) { - channel_new(d->session, it->data, (gpointer*)display); + channel_new(d->session, it->data, display); break; } } for (it = g_list_first(list); it != NULL; it = g_list_next(it)) { if (!SPICE_IS_MAIN_CHANNEL(it->data)) - channel_new(d->session, it->data, (gpointer*)display); + channel_new(d->session, it->data, display); } g_list_free(list); -- 2.17.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel