summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-12-10 17:19:09 +0000
committerDenis Ovsienko <infrastation@yandex.ru>2011-12-07 01:23:48 +0400
commit46901400a3401a4a6caa40435241b4546bb2a5c5 (patch)
tree797a251402d8b288835078ee2da4228dfc319d53 /lib
parent075e12f57d6c0b115cd177c7b244d9810460e3ff (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/vty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vty.c b/lib/vty.c
index bd1dbac0..6b66a4da 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. */