From: Stijn Tintel Date: Thu, 4 Nov 2021 10:37:10 +0000 (+0200) Subject: trigger: use uloop_timeout_remaining64 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0ee8e734a7f67220cf4a3412b60ff674b5fb20dd;p=project%2Fprocd.git trigger: use uloop_timeout_remaining64 The uloop_timeout_remaining function is being deprecated. Signed-off-by: Stijn Tintel Acked-by: Jo-Philipp Wich --- 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);