diff options
author | ajs <ajs> | 2004-11-20 02:06:59 +0000 |
---|---|---|
committer | ajs <ajs> | 2004-11-20 02:06:59 +0000 |
commit | 6099b3b56956322567323c11fd698b2328c6826b (patch) | |
tree | fa537bd0eaa9f7d824f39445eabc928db59050ca /zebra/interface.c | |
parent | ae5e24d8678f1e3a60dde58d3382c5ba73d6bb27 (diff) |
2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* global: Replace strerror with safe_strerror. And vtysh/vtysh.c
needs to include "log.h" to pick up the declaration.
Diffstat (limited to 'zebra/interface.c')
-rw-r--r-- | zebra/interface.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 813adb84..f97dc3fd 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -234,7 +234,7 @@ if_addr_wakeup (struct interface *ifp) if (ret < 0) { zlog_warn ("Can't set interface's address: %s", - strerror(errno)); + safe_strerror(errno)); continue; } @@ -261,7 +261,7 @@ if_addr_wakeup (struct interface *ifp) if (ret < 0) { zlog_warn ("Can't set interface's address: %s", - strerror(errno)); + safe_strerror(errno)); continue; } SET_FLAG (ifc->conf, ZEBRA_IFC_REAL); @@ -1163,7 +1163,7 @@ ip_address_install (struct vty *vty, struct interface *ifp, if (ret < 0) { vty_out (vty, "%% Can't set interface IP address: %s.%s", - strerror(errno), VTY_NEWLINE); + safe_strerror(errno), VTY_NEWLINE); return CMD_WARNING; } @@ -1227,7 +1227,7 @@ ip_address_uninstall (struct vty *vty, struct interface *ifp, if (ret < 0) { vty_out (vty, "%% Can't unset interface IP address: %s.%s", - strerror(errno), VTY_NEWLINE); + safe_strerror(errno), VTY_NEWLINE); return CMD_WARNING; } @@ -1355,7 +1355,7 @@ ipv6_address_install (struct vty *vty, struct interface *ifp, if (ret < 0) { vty_out (vty, "%% Can't set interface IP address: %s.%s", - strerror(errno), VTY_NEWLINE); + safe_strerror(errno), VTY_NEWLINE); return CMD_WARNING; } @@ -1416,7 +1416,7 @@ ipv6_address_uninstall (struct vty *vty, struct interface *ifp, if (ret < 0) { vty_out (vty, "%% Can't unset interface IP address: %s.%s", - strerror(errno), VTY_NEWLINE); + safe_strerror(errno), VTY_NEWLINE); return CMD_WARNING; } |