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. --- ospfd/ospf_api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ospfd/ospf_api.c') 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) -- cgit v1.2.1