summaryrefslogtreecommitdiff
path: root/zebra/rtread_sysctl.c
diff options
context:
space:
mode:
authorajs <ajs>2004-11-20 02:06:59 +0000
committerajs <ajs>2004-11-20 02:06:59 +0000
commit6099b3b56956322567323c11fd698b2328c6826b (patch)
treefa537bd0eaa9f7d824f39445eabc928db59050ca /zebra/rtread_sysctl.c
parentae5e24d8678f1e3a60dde58d3382c5ba73d6bb27 (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/rtread_sysctl.c')
-rw-r--r--zebra/rtread_sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/rtread_sysctl.c b/zebra/rtread_sysctl.c
index 970c0aa1..78864f2b 100644
--- a/zebra/rtread_sysctl.c
+++ b/zebra/rtread_sysctl.c
@@ -48,7 +48,7 @@ route_read ()
/* Get buffer size. */
if (sysctl (mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0)
{
- zlog_warn ("sysctl fail: %s", strerror (errno));
+ zlog_warn ("sysctl fail: %s", safe_strerror (errno));
return -1;
}
@@ -58,7 +58,7 @@ route_read ()
/* Read routing table information by calling sysctl(). */
if (sysctl (mib, MIBSIZ, buf, &bufsiz, NULL, 0) < 0)
{
- zlog_warn ("sysctl() fail by %s", strerror (errno));
+ zlog_warn ("sysctl() fail by %s", safe_strerror (errno));
return -1;
}