summaryrefslogtreecommitdiff
path: root/libdhcp/tests
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-06-02 16:47:00 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-06-02 16:47:00 -0600
commitce8ae41d677875adb45d99c351bcba108fb82a44 (patch)
tree45d54aca9fd5a4bb67ad55e50b71eaa6713894c0 /libdhcp/tests
parent6a6e3083d2d60cbd5bd581f432a0c56eff2bf29e (diff)
parent559627b00b74e11e394589bfcc8864b0f22d7e1b (diff)
Merge branch 'lukeshu/better-cpp'
Diffstat (limited to 'libdhcp/tests')
-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();