Skip to content

Commit

Permalink
groups: use uloop_timeout_remaining64
Browse files Browse the repository at this point in the history
The uloop_timeout_remaining function is being deprecated.

Signed-off-by: Stijn Tintel <[email protected]>
Acked-by: Jo-Philipp Wich <[email protected]>
  • Loading branch information
stintel committed Nov 4, 2021
1 parent 722151f commit bfba2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/groups.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static omgp_time_t expire_group(struct groups *groups, struct group *group,
// Rearm the global groups-timer if the next event is before timer expiration
static void rearm_timer(struct groups *groups, int msecs)
{
int remain = uloop_timeout_remaining(&groups->timer);
int64_t remain = uloop_timeout_remaining64(&groups->timer);
if (remain < 0 || remain >= msecs)
uloop_timeout_set(&groups->timer, msecs);
}
Expand Down

0 comments on commit bfba2aa

Please sign in to comment.