From: David Lamparter Date: Tue, 21 Apr 2015 07:47:57 +0000 (+0200) Subject: zebra: silence zebra_serv_un unused warning X-Git-Tag: frr-2.0-rc1~743 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fbedba64f54d4d20994c23391104a1a04eb24b34;p=matthieu%2Ffrr.git 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) --- 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