Browse Source

zebra: fix build with rtadv disabled

Otherwise we get warning on rtadv_init() prototype not being
defined when compiling rtadv.c (as dummy stub is provided always).

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Timo Teräs 6 years ago
parent
commit
e38545bb2c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      zebra/rtadv.h

+ 2 - 1
zebra/rtadv.h

@@ -59,7 +59,6 @@ struct rtadv_prefix
 };
 
 extern void rtadv_config_write (struct vty *, struct interface *);
-extern void rtadv_init (void);
 
 /* RFC4584 Extension to Sockets API for Mobile IPv6 */
 
@@ -101,4 +100,6 @@ extern const char *rtadv_pref_strs[];
 
 #endif /* RTADV */
 
+extern void rtadv_init (void);
+
 #endif /* _ZEBRA_RTADV_H */