The uloop_timeout_remaining function is being deprecated.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Jo-Philipp Wich <jo@mein.io>
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) {
}
/* 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);