summaryrefslogtreecommitdiffstats
path: root/zebra/rtadv.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-05-14 15:56:37 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-05-21 13:41:07 +0200
commitd3f604f0d682686cc083233981886daeeeea63c1 (patch)
treed2a81ea03cca9a72a45f2655559c947a24514747 /zebra/rtadv.c
parentMerge pull request #6431 from mjstapp/fix_bgp_dup_cli_cmds (diff)
downloadfrr-d3f604f0d682686cc083233981886daeeeea63c1.tar.xz
frr-d3f604f0d682686cc083233981886daeeeea63c1.zip
zebra: allow rtadv.c to compile with `--enable-rtadv=no`
The rtadv.c code was not properly compiling if you turned off router advertisements in zebra. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rtadv.c')
-rw-r--r--zebra/rtadv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/zebra/rtadv.c b/zebra/rtadv.c
index 013eb5819..403649960 100644
--- a/zebra/rtadv.c
+++ b/zebra/rtadv.c
@@ -46,14 +46,14 @@
#include "zebra/zebra_errors.h"
#include "zebra/zebra_router.h"
-#ifndef VTYSH_EXTRACT_PL
-#include "zebra/rtadv_clippy.c"
-#endif
-
extern struct zebra_privs_t zserv_privs;
#if defined(HAVE_RTADV)
+#ifndef VTYSH_EXTRACT_PL
+#include "zebra/rtadv_clippy.c"
+#endif
+
DEFINE_MTYPE_STATIC(ZEBRA, RTADV_PREFIX, "Router Advertisement Prefix")
#ifdef OPEN_BSD
@@ -2648,7 +2648,7 @@ void rtadv_init(struct zebra_vrf *zvrf)
{
/* Empty.*/;
}
-void rtadv_terminate(struct zebra_vrf *zvrf)
+void rtadv_terminate(void)
{
/* Empty.*/;
}