mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 13:35:03 +00:00
AK: Make timeval_add() and timeval_sub() take references.
This commit is contained in:
@@ -191,7 +191,7 @@ void CEventLoop::wait_for_event(WaitMode mode)
|
||||
if (!s_timers->is_empty() && queued_events_is_empty) {
|
||||
gettimeofday(&now, nullptr);
|
||||
get_next_timer_expiration(timeout);
|
||||
AK::timeval_sub(&timeout, &now, &timeout);
|
||||
timeval_sub(timeout, now, timeout);
|
||||
} else {
|
||||
should_wait_forever = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user