Skip to content

Commit

Permalink
mgmtd: fix warning if ripngd disabled
Browse files Browse the repository at this point in the history
./configure [...] --disable-ripngd

could lead to:

mgmtd/mgmt_vty.c:614:5: warning: "HAVE_RIPNGD" is not defined, evaluates to 0 [-Wundef]
  614 | #if HAVE_RIPNGD
      |     ^~~~~~~~~~~

Signed-off-by: Vincent Jardin <[email protected]>
  • Loading branch information
vjardin committed Mar 1, 2024
1 parent e3bc6e3 commit 717b335
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mgmtd/mgmt_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,13 +608,13 @@ void mgmt_vty_init(void)
* here one by one.
*/
zebra_cli_init();
#if HAVE_RIPD
#ifdef HAVE_RIPD
rip_cli_init();
#endif
#if HAVE_RIPNGD
#ifdef HAVE_RIPNGD
ripng_cli_init();
#endif
#if HAVE_STATICD
#ifdef HAVE_STATICD
static_vty_init();
#endif

Expand Down

0 comments on commit 717b335

Please sign in to comment.