]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: silence zebra_serv_un unused warning
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 21 Apr 2015 07:47:57 +0000 (09:47 +0200)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:29 +0000 (15:33 +0000)
zebra_serv_un() is unused if --enable-tcp-zebra is given.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 4b6c33282973c9e1545a519f2a51bda3cf42ae21)

zebra/zserv.c

index 70a53931fcf2361fdb10ae9e17bfdd753a48e200..b84117a0deb66270905de3594c18b4a210d4a0d4 100644 (file)
@@ -2223,7 +2223,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>
@@ -2287,6 +2287,7 @@ zebra_serv_un (const char *path)
 
   zebra_event (ZEBRA_SERV, sock, NULL);
 }
+#endif /* HAVE_TCP_ZEBRA */
 
 
 static void