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.
diff --git a/ospfclient/ospf_apiclient.c b/ospfclient/ospf_apiclient.c
index 96ccb8b..d6aa638 100644
--- a/ospfclient/ospf_apiclient.c
+++ b/ospfclient/ospf_apiclient.c
@@ -156,7 +156,7 @@
ret = listen (async_server_sock, BACKLOG);
if (ret < 0)
{
- fprintf (stderr, "ospf_apiclient_connect: listen: %s\n", strerror (errno));
+ fprintf (stderr, "ospf_apiclient_connect: listen: %s\n", safe_strerror (errno));
close (async_server_sock);
return NULL;
}