From f7385b42a446639bbde4cecb75e0fc37e81f6721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Tvrd=C3=ADk?= Date: Wed, 29 Jul 2015 09:04:22 +0200 Subject: [PATCH] Birdtest: Fix non-debug compilation of IP tests --- lib/ip_test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ip_test.c b/lib/ip_test.c index e64a8764..760b3f45 100644 --- a/lib/ip_test.c +++ b/lib/ip_test.c @@ -23,8 +23,8 @@ static u32 ip4_pton_(const char *s) { ip4_addr ip; - ip4_pton(s, &ip); - return ip.addr; + ip4_pton(s,&ip); + return ip4_to_u32(ip); } static int @@ -119,15 +119,15 @@ t_ip4_ntop(void) char out[IP4_MAX_LEN]; } in_out[] = { { - .in = { .addr = build_ip4(192, 168, 1, 128) }, + .in = ip4_from_u32(build_ip4(192, 168, 1, 128)), .out = "192.168.1.128", }, { - .in = { .addr = build_ip4(255, 255, 255, 255) }, + .in = ip4_from_u32(build_ip4(255, 255, 255, 255)), .out = "255.255.255.255", }, { - .in = { .addr = build_ip4(0, 0, 0, 1) }, + .in = ip4_from_u32(build_ip4(0, 0, 0, 1)), .out = "0.0.0.1", },