summaryrefslogtreecommitdiff
path: root/mgmtd
diff options
context:
space:
mode:
authoranlan_cs <anlan_cs@126.com>2024-12-21 19:29:32 +0800
committeranlan_cs <anlan_cs@126.com>2024-12-21 19:32:47 +0800
commitb5b8c9d3ecf92bdb0da9f6bb59f6e1137a74110e (patch)
treebe4d8a9ba0fa7e8d2b30b39bdd572f9c9dcc948a /mgmtd
parentf7fcc4429223798dd22100cd39620eabd0856244 (diff)
mgmtd: fix compile error
Compile error with `--disable-ripd`: ``` mgmtd/mgmt_be_adapter.c:86:5: error: "HAVE_RIPD" is not defined, evaluates to 0 [-Werror=undef] 86 | #if HAVE_RIPD | ^~~~~~~~~ ``` I have searched the code, there is only three places need to be fixed. Signed-off-by: anlan_cs <anlan_cs@126.com>
Diffstat (limited to 'mgmtd')
-rw-r--r--mgmtd/mgmt_be_adapter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mgmtd/mgmt_be_adapter.c b/mgmtd/mgmt_be_adapter.c
index 93c9bcac44..45e154d83b 100644
--- a/mgmtd/mgmt_be_adapter.c
+++ b/mgmtd/mgmt_be_adapter.c
@@ -83,7 +83,7 @@ static const char *const zebra_oper_xpaths[] = {
NULL,
};
-#if HAVE_RIPD
+#ifdef HAVE_RIPD
static const char *const ripd_config_xpaths[] = {
"/frr-filter:lib",
"/frr-interface:lib/interface",
@@ -104,7 +104,7 @@ static const char *const ripd_rpc_xpaths[] = {
};
#endif
-#if HAVE_RIPNGD
+#ifdef HAVE_RIPNGD
static const char *const ripngd_config_xpaths[] = {
"/frr-filter:lib",
"/frr-interface:lib/interface",
@@ -123,7 +123,7 @@ static const char *const ripngd_rpc_xpaths[] = {
};
#endif
-#if HAVE_STATICD
+#ifdef HAVE_STATICD
static const char *const staticd_config_xpaths[] = {
"/frr-vrf:lib",
"/frr-interface:lib",