diff options
author | ajs <ajs> | 2004-11-20 02:06:59 +0000 |
---|---|---|
committer | ajs <ajs> | 2004-11-20 02:06:59 +0000 |
commit | a113290b29b12bc66ed2d726b7d2ff971b50b8f2 (patch) | |
tree | 9e742d207a6a74c84738e9abf86dbb804e399293 /zebra/interface.c | |
parent | d3cd86f5876e014e59268b60e8077d7e8b4f5332 (diff) | |
download | quagga-a113290b29b12bc66ed2d726b7d2ff971b50b8f2.tar.bz2 quagga-a113290b29b12bc66ed2d726b7d2ff971b50b8f2.tar.xz |
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; } |