Re: [PATCH 03/11] event loop: use G_SOURCE_REMOVE instead of FALSE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  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 = {
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]