summaryrefslogtreecommitdiff
path: root/zebra/if_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/if_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/if_sysctl.c')
-rw-r--r--zebra/if_sysctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/if_sysctl.c b/zebra/if_sysctl.c
index 1441dfcc..7ad570f4 100644
--- a/zebra/if_sysctl.c
+++ b/zebra/if_sysctl.c
@@ -52,7 +52,7 @@ ifstat_update_sysctl ()
/* Query buffer size. */
if (sysctl (mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0)
{
- zlog_warn ("sysctl() error by %s", strerror (errno));
+ zlog_warn ("sysctl() error by %s", safe_strerror (errno));
return -1;
}
@@ -62,7 +62,7 @@ ifstat_update_sysctl ()
/* Fetch interface informations into allocated buffer. */
if (sysctl (mib, MIBSIZ, buf, &bufsiz, NULL, 0) < 0)
{
- zlog (NULL, LOG_WARNING, "sysctl error by %s", strerror (errno));
+ zlog (NULL, LOG_WARNING, "sysctl error by %s", safe_strerror (errno));
return -1;
}
@@ -108,7 +108,7 @@ interface_list ()
/* Query buffer size. */
if (sysctl (mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0)
{
- zlog (NULL, LOG_WARNING, "sysctl() error by %s", strerror (errno));
+ zlog (NULL, LOG_WARNING, "sysctl() error by %s", safe_strerror (errno));
return;
}
@@ -118,7 +118,7 @@ interface_list ()
/* Fetch interface informations into allocated buffer. */
if (sysctl (mib, MIBSIZ, buf, &bufsiz, NULL, 0) < 0)
{
- zlog (NULL, LOG_WARNING, "sysctl error by %s", strerror (errno));
+ zlog (NULL, LOG_WARNING, "sysctl error by %s", safe_strerror (errno));
return;
}