diff options
author | ajs <ajs> | 2004-11-20 02:06:59 +0000 |
---|---|---|
committer | ajs <ajs> | 2004-11-20 02:06:59 +0000 |
commit | a113290b29b12bc66ed2d726b7d2ff971b50b8f2 (patch) | |
tree | 9e742d207a6a74c84738e9abf86dbb804e399293 /zebra/zserv.c | |
parent | d3cd86f5876e014e59268b60e8077d7e8b4f5332 (diff) | |
download | quagga-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 'zebra/zserv.c')
-rw-r--r-- | zebra/zserv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c index 10dd5fa5..09dddf63 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -1369,7 +1369,7 @@ zebra_accept (struct thread *thread) if (client_sock < 0) { - zlog_warn ("Can't accept zebra socket: %s", strerror (errno)); + zlog_warn ("Can't accept zebra socket: %s", safe_strerror (errno)); return -1; } @@ -1400,7 +1400,7 @@ zebra_serv () if (accept_sock < 0) { - zlog_warn ("Can't bind to socket: %s", strerror (errno)); + zlog_warn ("Can't bind to socket: %s", safe_strerror (errno)); zlog_warn ("zebra can't provice full functionality due to above error"); return; } @@ -1423,7 +1423,7 @@ zebra_serv () sizeof (struct sockaddr_in)); if (ret < 0) { - zlog_warn ("Can't bind to socket: %s", strerror (errno)); + zlog_warn ("Can't bind to socket: %s", safe_strerror (errno)); zlog_warn ("zebra can't provice full functionality due to above error"); close (accept_sock); /* Avoid sd leak. */ return; @@ -1435,7 +1435,7 @@ zebra_serv () ret = listen (accept_sock, 1); if (ret < 0) { - zlog_warn ("Can't listen to socket: %s", strerror (errno)); + zlog_warn ("Can't listen to socket: %s", safe_strerror (errno)); zlog_warn ("zebra can't provice full functionality due to above error"); close (accept_sock); /* Avoid sd leak. */ return; |