Skip to content

Commit

Permalink
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 <vjardin@free.fr>
  • Loading branch information
vjardin committed Mar 1, 2024
1 parent c357942 commit 0e3346b
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 0e3346b

Please sign in to comment.