diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-02-02 02:01:30 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-02-09 23:42:11 -0700 |
commit | 41ac4f8dfddc8d003cb3174d466a58fa14701d35 (patch) | |
tree | 209bbac2078be812aa4f20e2a146e471a7e2c99b /libhw/host_net.c | |
parent | 9cd5486484653dd8cc42b43bcde45379982c3177 (diff) |
libhw_generic: alarmclock: Use libobj instead of vcall.h
Diffstat (limited to 'libhw/host_net.c')
-rw-r--r-- | libhw/host_net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhw/host_net.c b/libhw/host_net.c index bf79480..3352b87 100644 --- a/libhw/host_net.c +++ b/libhw/host_net.c @@ -267,7 +267,7 @@ static ssize_t hostnet_tcp_read(implements_net_stream_conn *_conn, void *buf, si .ret = &ret, }; if (conn->read_deadline_ns) { - uint64_t now_ns = VCALL(bootclock, get_time_ns); + uint64_t now_ns = LO_CALL(bootclock, get_time_ns); if (conn->read_deadline_ns < now_ns) return -NET_ERECV_TIMEOUT; args.timeout = ns_to_host_us_time(conn->read_deadline_ns-now_ns); @@ -534,7 +534,7 @@ static ssize_t hostnet_udp_recvfrom(implements_net_packet_conn *_conn, void *buf .ret_port = ret_port, }; if (conn->read_deadline_ns) { - uint64_t now_ns = VCALL(bootclock, get_time_ns); + uint64_t now_ns = LO_CALL(bootclock, get_time_ns); if (conn->read_deadline_ns < now_ns) return -NET_ERECV_TIMEOUT; args.timeout = ns_to_host_us_time(conn->read_deadline_ns-now_ns); |