]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Fix profiles compile issue when not using bfdd
authorDonald Sharp <sharpd@nvidia.com>
Mon, 26 Oct 2020 15:25:28 +0000 (11:25 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 28 Oct 2020 18:35:48 +0000 (21:35 +0300)
When compiling w/ --enable-bfdd=no we get warnings
about functions not being used.

Add a #if check to include it as needed.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_bfd.c

index 67b8018c8e01f1f5f65b5b5ef2efb1d6006cf0d5..b566b0ea0645aa2e0babf85c3f8f841a1455a9da 100644 (file)
@@ -601,6 +601,7 @@ static int bgp_bfd_peer_param_type_set(struct peer *peer,
        return 0;
 }
 
+#if HAVE_BFDD > 0
 /**
  * Set peer BFD profile configuration.
  */
@@ -655,6 +656,7 @@ static int bgp_bfd_peer_set_profile(struct peer *peer, const char *profile)
 
        return 0;
 }
+#endif
 
 /*
  * bgp_bfd_peer_config_write - Write the peer BFD configuration.