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. --- isisd/modified/thread.c | 2 +- isisd/modified/vty.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'isisd/modified') diff --git a/isisd/modified/thread.c b/isisd/modified/thread.c index af954b83..8364c4d7 100644 --- a/isisd/modified/thread.c +++ b/isisd/modified/thread.c @@ -611,7 +611,7 @@ thread_fetch (struct thread_master *m, struct thread *fetch) if (errno == EINTR) continue; - zlog_warn ("select() error: %s", strerror (errno)); + zlog_warn ("select() error: %s", safe_strerror (errno)); return NULL; } 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.1