diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-12-10 17:19:09 +0000 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-05 01:40:34 +0100 |
commit | c3c0726e61b0021e8177f42bcf71fb31c68e1a84 (patch) | |
tree | 5d173fc600b7397b22fe54c4c9432dd14137f307 | |
parent | ebada09457732536a890630e695cb6e4eb4d4d44 (diff) | |
download | quagga-c3c0726e61b0021e8177f42bcf71fb31c68e1a84.tar.bz2 quagga-c3c0726e61b0021e8177f42bcf71fb31c68e1a84.tar.xz |
vty_serv_sock_family unused
If the vty_serv_sock_addrinfo is being used, then vty_serv_sock_family
is unsed. Fix by adjusting ifdef/else/endif
-rw-r--r-- | lib/vty.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. */ |