From fbedba64f54d4d20994c23391104a1a04eb24b34 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 21 Apr 2015 09:47:57 +0200 Subject: [PATCH] zebra: silence zebra_serv_un unused warning zebra_serv_un() is unused if --enable-tcp-zebra is given. Signed-off-by: David Lamparter (cherry picked from commit 4b6c33282973c9e1545a519f2a51bda3cf42ae21) --- zebra/zserv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra/zserv.c b/zebra/zserv.c index 70a53931fc..b84117a0de 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -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 @@ -2287,6 +2287,7 @@ zebra_serv_un (const char *path) zebra_event (ZEBRA_SERV, sock, NULL); } +#endif /* HAVE_TCP_ZEBRA */ static void -- 2.39.5