Skip to content

Commit

Permalink
Pass acquired-time pointer by value
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinMcInnes authored Jan 14, 2025
1 parent cbb58c4 commit 2637f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ lifetime_left(uint32_t lifetime, const struct timespec *acquired, const struct t
if (lifetime == INFINITE_LIFETIME)
return lifetime;

elapsed = (uint32_t)eloop_timespec_diff(now, &acquired, NULL);
elapsed = (uint32_t)eloop_timespec_diff(now, acquired, NULL);
if (elapsed > lifetime)
return 0;

Expand Down

0 comments on commit 2637f07

Please sign in to comment.