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/rtread_sysctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zebra/rtread_sysctl.c') 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; } -- cgit v1.2.1