From 41ac4f8dfddc8d003cb3174d466a58fa14701d35 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 2 Feb 2025 02:01:30 -0700 Subject: libhw_generic: alarmclock: Use libobj instead of vcall.h --- lib9p/tests/test_server/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib9p/tests') diff --git a/lib9p/tests/test_server/main.c b/lib9p/tests/test_server/main.c index b979a4b..8df3da0 100644 --- a/lib9p/tests/test_server/main.c +++ b/lib9p/tests/test_server/main.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include "static.h" @@ -195,10 +196,9 @@ static COROUTINE init_cr(void *) { int main() { struct hostclock clock_monotonic = { - .vtable = &hostclock_vtable, .clock_id = CLOCK_MONOTONIC, }; - bootclock = &clock_monotonic; + bootclock = lo_box_hostclock_as_alarmclock(&clock_monotonic); coroutine_add("init", init_cr, NULL); coroutine_main(); return 0; -- cgit v1.2.3-2-g168b