[Spice-devel] [PATCH v2 10/19] Reuse reds_core_timer_add
Pavel Grunt
pgrunt at redhat.com
Mon Nov 28 19:01:42 UTC 2016
On Fri, 2016-11-25 at 14:52 +0000, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
> server/main-channel-client.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/server/main-channel-client.c b/server/main-channel-
> client.c
> index 987f260..576b31f 100644
> --- a/server/main-channel-client.c
> +++ b/server/main-channel-client.c
> @@ -174,9 +174,7 @@ static void
> main_channel_client_constructed(GObject *object)
> RedsState *reds =
> red_channel_get_server(red_channel_client_get_channel(RED_C
> HANNEL_CLIENT(object)));
>
> - self->priv->ping_timer =
> - reds_get_core_interface(reds)-
> >timer_add(reds_get_core_interface(reds),
> - ping_timer_cb,
> self);
> + self->priv->ping_timer = reds_core_timer_add(reds,
> ping_timer_cb, self);
> if (!self->priv->ping_timer) {
> spice_error("ping timer create failed");
> }
More information about the Spice-devel
mailing list