summaryrefslogtreecommitdiff
path: root/lib9p/tests
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-02-02 02:01:30 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-02-09 23:42:11 -0700
commit41ac4f8dfddc8d003cb3174d466a58fa14701d35 (patch)
tree209bbac2078be812aa4f20e2a146e471a7e2c99b /lib9p/tests
parent9cd5486484653dd8cc42b43bcde45379982c3177 (diff)
libhw_generic: alarmclock: Use libobj instead of vcall.h
Diffstat (limited to 'lib9p/tests')
-rw-r--r--lib9p/tests/test_server/main.c4
1 files changed, 2 insertions, 2 deletions
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 <libhw/host_alarmclock.h>
#include <libhw/host_net.h>
#include <libmisc/macro.h>
+#include <libmisc/vcall.h>
#include <util9p/static.h>
#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;