diff options
author | paulo <paul@bayleaf.org.uk> | 2010-02-04 15:09:00 +0000 |
---|---|---|
committer | paulo <paul@bayleaf.org.uk> | 2010-02-04 15:09:00 +0000 |
commit | 2c9671af75453599104a36b30c4f9281104b1816 (patch) | |
tree | cb77b6bbbe1ecc0a549a39af602221b9de5282da /lib/if.c | |
parent | d8921b6522d8b55f3de87f90c4cdc0755acf8c7f (diff) | |
download | quagga-2c9671af75453599104a36b30c4f9281104b1816.tar.bz2 quagga-2c9671af75453599104a36b30c4f9281104b1816.tar.xz |
Thread safe versions of inet_ntoa and strerror.
Diffstat (limited to 'lib/if.c')
-rw-r--r-- | lib/if.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -611,7 +611,7 @@ DEFUN (show_address, p = ifc->address; if (p->family == AF_INET) - vty_out (vty, "%s/%d%s", inet_ntoa (p->u.prefix4), p->prefixlen, + vty_out (vty, "%s/%d%s", safe_inet_ntoa (p->u.prefix4), p->prefixlen, VTY_NEWLINE); } } @@ -807,7 +807,7 @@ ifaddr_ipv4_add (struct in_addr *ifaddr, struct interface *ifp) { route_unlock_node (rn); zlog_info ("ifaddr_ipv4_add(): address %s is already added", - inet_ntoa (*ifaddr)); + safe_inet_ntoa (*ifaddr)); return; } rn->info = ifp; @@ -827,7 +827,7 @@ ifaddr_ipv4_delete (struct in_addr *ifaddr, struct interface *ifp) if (! rn) { zlog_info ("ifaddr_ipv4_delete(): can't find address %s", - inet_ntoa (*ifaddr)); + safe_inet_ntoa (*ifaddr)); return; } rn->info = NULL; |