diff options
author | ajs <ajs> | 2004-11-20 03:06:59 +0100 |
---|---|---|
committer | ajs <ajs> | 2004-11-20 03:06:59 +0100 |
commit | 6099b3b56956322567323c11fd698b2328c6826b (patch) | |
tree | fa537bd0eaa9f7d824f39445eabc928db59050ca /zebra/if_sysctl.c | |
parent | Fix previous change to use new function safe_strerror instead of strerror. (diff) | |
download | frr-6099b3b56956322567323c11fd698b2328c6826b.tar.xz frr-6099b3b56956322567323c11fd698b2328c6826b.zip |
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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/if_sysctl.c b/zebra/if_sysctl.c index 1441dfcc0..7ad570f4a 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; } |