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

Pavel Grunt pgrunt at redhat.com
Tue Feb 9 12:53:47 UTC 2016


Hi,

G_SOURCE_REMOVE was introduced in glib2.32

Pavel

On Tue, 2016-02-09 at 10:27 +0000, Frediano Ziglio wrote:
> 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 = {


More information about the Spice-devel mailing list