Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Quagga: Dev

[PATCH 8/9] vty_serv_sock_family unused

 

 

Quagga dev RSS feed   Index | Next | Previous | View Threaded


equinox at diac24

Aug 31, 2011, 8:31 AM

Post #1 of 1 (190 views)
Permalink
[PATCH 8/9] vty_serv_sock_family unused

From: Stephen Hemminger <shemminger [at] vyatta>

If the vty_serv_sock_addrinfo is being used, then vty_serv_sock_family
is unsed. Fix by adjusting ifdef/else/endif
---
lib/vty.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/vty.c b/lib/vty.c
index 58416a5..c965c7b 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -1839,7 +1839,7 @@ vty_serv_sock_addrinfo (const char *hostname, unsigned short port)

freeaddrinfo (ainfo_save);
}
-#endif /* HAVE_IPV6 && ! NRL */
+#else /* HAVE_IPV6 && ! NRL */

/* Make vty server socket. */
static void
@@ -1905,6 +1905,7 @@ vty_serv_sock_family (const char* addr, unsigned short port, int family)
/* Add vty server event. */
vty_event (VTY_SERV, accept_sock, NULL);
}
+#endif /* HAVE_IPV6 && ! NRL */

#ifdef VTYSH
/* For sockaddr_un. */
--
1.7.6

_______________________________________________
Quagga-dev mailing list
Quagga-dev [at] lists
http://lists.quagga.net/mailman/listinfo/quagga-dev

Quagga dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.