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.
diff --git a/zebra/interface.c b/zebra/interface.c
index 813adb8..f97dc3f 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -234,7 +234,7 @@
if (ret < 0)
{
zlog_warn ("Can't set interface's address: %s",
- strerror(errno));
+ safe_strerror(errno));
continue;
}
@@ -261,7 +261,7 @@
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 @@
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 @@
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 @@
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 @@
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;
}