summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_api.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 /ospfd/ospf_api.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 'ospfd/ospf_api.c')
-rw-r--r--ospfd/ospf_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ospfd/ospf_api.c b/ospfd/ospf_api.c
index cd69336c..8821d741 100644
--- a/ospfd/ospf_api.c
+++ b/ospfd/ospf_api.c
@@ -359,7 +359,7 @@ msg_read (int fd)
if (rlen < 0)
{
- zlog_warn ("msg_read: readn %s", strerror (errno));
+ zlog_warn ("msg_read: readn %s", safe_strerror (errno));
return NULL;
}
else if (rlen == 0)
@@ -389,7 +389,7 @@ msg_read (int fd)
rlen = readn (fd, buf, bodylen);
if (rlen < 0)
{
- zlog_warn ("msg_read: readn %s", strerror (errno));
+ zlog_warn ("msg_read: readn %s", safe_strerror (errno));
return NULL;
}
else if (rlen == 0)
@@ -431,7 +431,7 @@ msg_write (int fd, struct msg *msg)
wlen = writen (fd, buf, l);
if (wlen < 0)
{
- zlog_warn ("msg_write: writen %s", strerror (errno));
+ zlog_warn ("msg_write: writen %s", safe_strerror (errno));
return -1;
}
else if (wlen == 0)