summaryrefslogtreecommitdiffstats
path: root/lib/vty_io.c
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-04-11 11:17:37 +0100
committerChris Hall <GMCH@hestia.halldom.com>2010-04-11 11:17:37 +0100
commitb878aa88eb8bb7ab74e24314e87c88586f15598d (patch)
treeb51690eff9070c419dbe99602b9a974d82f8aaed /lib/vty_io.c
parent83447a051fbcc88b33fcea6670520687668d3ba1 (diff)
downloadquagga-b878aa88eb8bb7ab74e24314e87c88586f15598d.tar.bz2
quagga-b878aa88eb8bb7ab74e24314e87c88586f15598d.tar.xz
Support gai_strerror() and tidy bgp_listener code.
Added support for EAI_XXX error names and gai_strerror() error messages. Tidied up bgp_listener set up to remove #if skips around the "old" way -- so that the older code doesn't simply rot away.
Diffstat (limited to 'lib/vty_io.c')
-rw-r--r--lib/vty_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vty_io.c b/lib/vty_io.c
index af61e97c..c4b4f528 100644
--- a/lib/vty_io.c
+++ b/lib/vty_io.c
@@ -1983,7 +1983,7 @@ uty_serv_sock_addrinfo (const char *hostname, unsigned short port)
if (ret != 0)
{
- fprintf (stderr, "getaddrinfo failed: %s\n", gai_strerror (ret));
+ fprintf (stderr, "getaddrinfo failed: %s\n", eaitoa(ret, errno, 0).str);
exit (1);
}