[quagga-dev 12164] [PATCH 2/6] zebra: silence zebra_serv_un unused warning

David Lamparter equinox at opensourcerouting.org
Tue Apr 21 10:03:42 BST 2015


zebra_serv_un() is unused if --enable-tcp-zebra is given.

Signed-off-by: David Lamparter <equinox at opensourcerouting.org>
---
 zebra/zserv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/zebra/zserv.c b/zebra/zserv.c
index afd722a..432c318 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -1558,7 +1558,7 @@ zebra_serv ()
 
   zebra_event (ZEBRA_SERV, accept_sock, NULL);
 }
-#endif /* HAVE_TCP_ZEBRA */
+#else /* HAVE_TCP_ZEBRA */
 
 /* For sockaddr_un. */
 #include <sys/un.h>
@@ -1624,6 +1624,7 @@ zebra_serv_un (const char *path)
 
   zebra_event (ZEBRA_SERV, sock, NULL);
 }
+#endif /* HAVE_TCP_ZEBRA */
 
 
 static void
-- 
2.0.4





More information about the Quagga-dev mailing list