mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 05:57:20 +00:00
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:
parent
24c8692e5f
commit
f028c9b787
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user