From 0ee8e734a7f67220cf4a3412b60ff674b5fb20dd Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Thu, 4 Nov 2021 12:37:10 +0200 Subject: [PATCH] trigger: use uloop_timeout_remaining64 The uloop_timeout_remaining function is being deprecated. Signed-off-by: Stijn Tintel Acked-by: Jo-Philipp Wich --- service/trigger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/trigger.c b/service/trigger.c index 440830b..4af1474 100644 --- a/service/trigger.c +++ b/service/trigger.c @@ -155,7 +155,7 @@ static void trigger_command_start(struct uloop_timeout *timeout) static void trigger_command_add(struct trigger *t, struct blob_attr *data) { struct trigger_command *cmd; - int remaining; + int64_t remaining; cmd = avl_find_element(&trigger_pending, data, cmd, avl); if (cmd) { @@ -166,7 +166,7 @@ static void trigger_command_add(struct trigger *t, struct blob_attr *data) } /* Extend timer if trigger timeout is bigger than remaining time */ - remaining = uloop_timeout_remaining(&cmd->delay); + remaining = uloop_timeout_remaining64(&cmd->delay); if (remaining < t->timeout) uloop_timeout_set(&cmd->delay, t->timeout); -- 2.30.2