diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-10 17:26:01 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-10 17:26:01 -0600 |
commit | 7146166ce00e1f6ad3a35d7e1e4bf778b74272e1 (patch) | |
tree | 61dddfb0735fe841a0e1c56ea331a360a2d2dad0 /libdhcp/tests/test_client.c | |
parent | cd5768ef4bc36b33699539d9656f455bafb0de0c (diff) | |
parent | 6eafa9fd3a49289d34007a018b6d1fba8e4b7e24 (diff) |
Merge branch 'lukeshu/obj-meth'
Diffstat (limited to 'libdhcp/tests/test_client.c')
-rw-r--r-- | libdhcp/tests/test_client.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libdhcp/tests/test_client.c b/libdhcp/tests/test_client.c index cf76653..6446cef 100644 --- a/libdhcp/tests/test_client.c +++ b/libdhcp/tests/test_client.c @@ -18,10 +18,8 @@ struct test_udp { }; -LO_IMPLEMENTATION_H(io_closer, struct test_udp, test_udp); -LO_IMPLEMENTATION_C(io_closer, struct test_udp, test_udp, static); -LO_IMPLEMENTATION_H(net_packet_conn, struct test_udp, test_udp); -LO_IMPLEMENTATION_C(net_packet_conn, struct test_udp, test_udp, static); +LO_IMPLEMENTATION_STATIC(io_closer, struct test_udp, test_udp); +LO_IMPLEMENTATION_STATIC(net_packet_conn, struct test_udp, test_udp); static error test_udp_sendto(struct test_udp *LM_UNUSED(self), void *LM_UNUSED(buf), size_t LM_UNUSED(len), struct net_ip4_addr LM_UNUSED(node), uint16_t LM_UNUSED(port)) { static unsigned cnt = 0; @@ -66,8 +64,7 @@ struct test_iface { struct test_udp conn; }; -LO_IMPLEMENTATION_H(net_iface, struct test_iface, test); -LO_IMPLEMENTATION_C(net_iface, struct test_iface, test, static); +LO_IMPLEMENTATION_STATIC(net_iface, struct test_iface, test); static struct net_eth_addr test_hwaddr(struct test_iface *LM_UNUSED(self)) { struct net_eth_addr ret = {{1, 2, 3, 4, 5, 6}}; |