From b878aa88eb8bb7ab74e24314e87c88586f15598d Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Sun, 11 Apr 2010 11:17:37 +0100 Subject: 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. --- lib/vty_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vty_io.c') 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); } -- cgit v1.2.3