summaryrefslogtreecommitdiff
path: root/libhw/host_net.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-29 20:51:36 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-29 20:51:36 -0600
commit3c3e9e2c62ad9a83ab9b0e1255204d57894c20ff (patch)
tree3ad8898edb89eba0e62ac0c27487949bfa72c135 /libhw/host_net.c
parent6c114930eef133293856189a93f7ca7ca3751268 (diff)
host alarmclock
Diffstat (limited to 'libhw/host_net.c')
-rw-r--r--libhw/host_net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhw/host_net.c b/libhw/host_net.c
index 97e7726..9d1ffcf 100644
--- a/libhw/host_net.c
+++ b/libhw/host_net.c
@@ -235,7 +235,7 @@ static ssize_t hostnet_tcp_read(implements_net_stream_conn *_conn, void *buf, si
return -NET_ETIMEDOUT;
args.timeout = ns_to_host_us_time(conn->read_deadline_ns-now_ns);
} else {
- args.timeout = ns_to_host_us_time(0);
+ args.timeout = (host_us_time_t){0};
}
if (RUN_PTHREAD(hostnet_pthread_read, &args))
@@ -500,7 +500,7 @@ static ssize_t hostnet_udp_recvfrom(implements_net_packet_conn *_conn, void *buf
return -NET_ETIMEDOUT;
args.timeout = ns_to_host_us_time(conn->read_deadline_ns-now_ns);
} else {
- args.timeout = ns_to_host_us_time(0);
+ args.timeout = (host_us_time_t){0};
}
if (RUN_PTHREAD(hostnet_pthread_recvfrom, &args))