[Spice-devel] [PATCH 03/11] event loop: use G_SOURCE_REMOVE instead of FALSE

Frediano Ziglio fziglio at redhat.com
Tue Feb 9 10:27:52 UTC 2016


Make code more readable.
Value is exactly the same.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/event-loop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/event-loop.c b/server/event-loop.c
index 9eae913..9ef7a46 100644
--- a/server/event-loop.c
+++ b/server/event-loop.c
@@ -39,7 +39,7 @@ spice_timer_dispatch(GSource     *source,
     func(user_data);
     /* timer might be free after func(), don't touch */
 
-    return FALSE;
+    return G_SOURCE_REMOVE;
 }
 
 static GSourceFuncs spice_timer_funcs = {
-- 
2.5.0



More information about the Spice-devel mailing list