From a113290b29b12bc66ed2d726b7d2ff971b50b8f2 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. --- isisd/modified/vty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'isisd/modified/vty.c') diff --git a/isisd/modified/vty.c b/isisd/modified/vty.c index 6de0e0da..2a1f4665 100644 --- a/isisd/modified/vty.c +++ b/isisd/modified/vty.c @@ -1638,7 +1638,7 @@ vty_accept (struct thread *thread) vty_sock = sockunion_accept (accept_sock, &su); if (vty_sock < 0) { - zlog_warn ("can't accept vty socket : %s", strerror (errno)); + zlog_warn ("can't accept vty socket : %s", safe_strerror (errno)); return -1; } @@ -1695,7 +1695,7 @@ vty_accept (struct thread *thread) (char *) &on, sizeof (on)); if (ret < 0) zlog (NULL, LOG_INFO, "can't set sockopt to vty_sock : %s", - strerror (errno)); + safe_strerror (errno)); vty = vty_create (vty_sock, &su); @@ -1889,7 +1889,7 @@ vtysh_accept (struct thread *thread) if (sock < 0) { - zlog_warn ("can't accept vty socket : %s", strerror (errno)); + zlog_warn ("can't accept vty socket : %s", safe_strerror (errno)); return -1; } -- cgit v1.2.3