From 736ab9bb17257ee5eba3bc96f6650fc4a14608ea Mon Sep 17 00:00:00 2001 From: Armin Preiml Date: Wed, 03 Jan 2024 19:34:46 +0100 Subject: [PATCH] update to the new time::duration_to_timespec api --- ev/+linux/timers.ha | 8 +++++--- diff --git a/ev/+linux/timers.ha b/ev/+linux/timers.ha index dd22a10f6f0985db47e9ea7fa5a0232306f21478..2e67a7fd5e4d9144356fe6daa7401f4c112db2ec 100644 --- a/ev/+linux/timers.ha +++ b/ev/+linux/timers.ha @@ -36,9 +36,11 @@ delay: time::duration, repeat: time::duration, ) void = { assert(timer.op == op::TIMER); - let spec = rt::itimerspec { ... }; - time::duration_to_timespec(delay, &spec.it_value); - time::duration_to_timespec(repeat, &spec.it_interval); + let spec = rt::itimerspec { + it_value = time::duration_to_timespec(delay), + it_interval = time::duration_to_timespec(repeat), + ... + }; rt::timerfd_settime(timer.fd, 0, &spec, null)!; }; -- 2.48.1