From 6099b3b56956322567323c11fd698b2328c6826b Mon Sep 17 00:00:00 2001 From: ajs Date: Sat, 20 Nov 2004 02:06:59 +0000 Subject: 2004-11-19 Andrew J. Schorr * global: Replace strerror with safe_strerror. And vtysh/vtysh.c needs to include "log.h" to pick up the declaration. --- zebra/interface.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'zebra/interface.c') 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; } -- cgit v1.2.1