summaryrefslogtreecommitdiff
path: root/libdhcp/tests/test_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdhcp/tests/test_client.c')
-rw-r--r--libdhcp/tests/test_client.c9
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}};