summaryrefslogtreecommitdiff
path: root/libdhcp/tests/test_client.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-31 14:42:03 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-06-08 03:59:42 -0600
commit5367159e1babccb60c634aa6e32937cfe9bdb7a1 (patch)
tree1eead407eba7838f50a4130706060834018b6f45 /libdhcp/tests/test_client.c
parent121994d85648469ea498b52cef83e4609496a7b7 (diff)
tree-wide: Use LO_BOX() where it doesn't explode the post-preprocessed size
Diffstat (limited to 'libdhcp/tests/test_client.c')
-rw-r--r--libdhcp/tests/test_client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdhcp/tests/test_client.c b/libdhcp/tests/test_client.c
index 24b3af6..09557e5 100644
--- a/libdhcp/tests/test_client.c
+++ b/libdhcp/tests/test_client.c
@@ -99,7 +99,7 @@ static lo_interface net_packet_conn test_udp_conn(struct test_iface *self, uint1
test_assert(local_port == 68);
test_assert(!once);
once = true;
- return lo_box_test_udp_as_net_packet_conn(&self->conn);
+ return LO_BOX(net_packet_conn, &self->conn);
}
/******************************************************************************/
@@ -107,7 +107,7 @@ static lo_interface net_packet_conn test_udp_conn(struct test_iface *self, uint1
COROUTINE dhcp_cr(void *) {
cr_begin();
struct test_iface iface = {};
- dhcp_client_main(lo_box_test_as_net_iface(&iface), "test-client");
+ dhcp_client_main(LO_BOX(net_iface, &iface), "test-client");
cr_end();
}
@@ -115,7 +115,7 @@ int main() {
struct hostclock clock_monotonic = {
.clock_id = CLOCK_MONOTONIC,
};
- bootclock = lo_box_hostclock_as_alarmclock(&clock_monotonic);
+ bootclock = LO_BOX(alarmclock, &clock_monotonic);
coroutine_add("dhcp", dhcp_cr, NULL);
coroutine_main();