]> git.puffer.fish Git - matthieu/frr.git/commitdiff
staticd: replace inet_ntoa
authorMark Stapp <mjs@voltanet.io>
Thu, 22 Oct 2020 18:19:10 +0000 (14:19 -0400)
committerMark Stapp <mjs@voltanet.io>
Thu, 22 Oct 2020 20:25:41 +0000 (16:25 -0400)
Replace inet_ntoa with pI4

Signed-off-by: Mark Stapp <mjs@voltanet.io>
staticd/static_vty.c

index 6608811cc6d6efbd47796142516cbc4ab5340f65..e2eb8cb7afc69702961d24717490700209c990cc 100644 (file)
@@ -365,8 +365,7 @@ int static_config(struct vty *vty, struct static_vrf *svrf, afi_t afi,
 
                                switch (nh->type) {
                                case STATIC_IPV4_GATEWAY:
-                                       vty_out(vty, " %s",
-                                               inet_ntoa(nh->addr.ipv4));
+                                       vty_out(vty, " %pI4", &nh->addr.ipv4);
                                        break;
                                case STATIC_IPV6_GATEWAY:
                                        vty_out(vty, " %s",