event-loop: Avoid useless cast

"func" is already a "SpiceWatchFunc", remove the first cast to
the same type.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
Frediano Ziglio 2020-06-27 14:00:50 +01:00
parent 24c8692e5f
commit f028c9b787

View File

@ -298,7 +298,7 @@ static SpiceWatch *watch_add(const SpiceCoreInterfaceInternal *iface,
watch->spice_base.funcs = &glib_core_funcs;
watch->fd = fd;
g_source_set_callback(&watch->source, (GSourceFunc)(void*)(SpiceWatchFunc) func, opaque, NULL);
g_source_set_callback(&watch->source, (GSourceFunc)(void*) func, opaque, NULL);
g_source_attach(&watch->source, iface->main_context);