[Spice-commits] server/event-loop.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 30 09:31:14 UTC 2020
server/event-loop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f028c9b787f5a5a8123f7dd1bcf24bf55d28b72f
Author: Frediano Ziglio <freddy77 at gmail.com>
Date: Sat Jun 27 14:00:50 2020 +0100
event-loop: Avoid useless cast
"func" is already a "SpiceWatchFunc", remove the first cast to
the same type.
Signed-off-by: Frediano Ziglio <freddy77 at gmail.com>
diff --git a/server/event-loop.c b/server/event-loop.c
index 0a9df340..e5291b5a 100644
--- a/server/event-loop.c
+++ b/server/event-loop.c
@@ -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);
More information about the Spice-commits
mailing list