]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Birdtest: Fix non-debug compilation of IP tests
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Wed, 29 Jul 2015 07:04:22 +0000 (09:04 +0200)
committerPavel Tvrdík <pawel.tvrdik@gmail.cz>
Wed, 29 Jul 2015 07:51:17 +0000 (09:51 +0200)
lib/ip_test.c

index 149fc048fd84ccc884e2f4e67f7fc53760e3a385..1d307b4d4f88a106c90598c8a35be51af9f7a270 100644 (file)
@@ -24,7 +24,7 @@ ip4_pton_(char *s)
 {
   ip4_addr ip;
   ip4_pton(s,&ip);
-  return ip.addr;
+  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",
       },