summaryrefslogtreecommitdiffstats
path: root/lib/smux.c
diff options
context:
space:
mode:
authorajs <ajs>2004-11-20 02:06:59 +0000
committerajs <ajs>2004-11-20 02:06:59 +0000
commita113290b29b12bc66ed2d726b7d2ff971b50b8f2 (patch)
tree9e742d207a6a74c84738e9abf86dbb804e399293 /lib/smux.c
parentd3cd86f5876e014e59268b60e8077d7e8b4f5332 (diff)
downloadquagga-a113290b29b12bc66ed2d726b7d2ff971b50b8f2.tar.bz2
quagga-a113290b29b12bc66ed2d726b7d2ff971b50b8f2.tar.xz
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 'lib/smux.c')
-rw-r--r--lib/smux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/smux.c b/lib/smux.c
index 25786090..33efccde 100644
--- a/lib/smux.c
+++ b/lib/smux.c
@@ -904,7 +904,7 @@ smux_read (struct thread *t)
if (len < 0)
{
- zlog_warn ("Can't read all SMUX packet: %s", strerror (errno));
+ zlog_warn ("Can't read all SMUX packet: %s", safe_strerror (errno));
close (sock);
smux_sock = -1;
smux_event (SMUX_CONNECT, 0);
@@ -1181,7 +1181,7 @@ smux_connect (struct thread *t)
ret = smux_open (smux_sock);
if (ret < 0)
{
- zlog_warn ("SMUX open message send failed: %s", strerror (errno));
+ zlog_warn ("SMUX open message send failed: %s", safe_strerror (errno));
close (smux_sock);
smux_sock = -1;
if (++fail < SMUX_MAX_FAILURE)
@@ -1193,7 +1193,7 @@ smux_connect (struct thread *t)
ret = smux_register (smux_sock);
if (ret < 0)
{
- zlog_warn ("SMUX register message send failed: %s", strerror (errno));
+ zlog_warn ("SMUX register message send failed: %s", safe_strerror (errno));
close (smux_sock);
smux_sock = -1;
if (++fail < SMUX_MAX_FAILURE)