zebra: use prototypes/includes in rt_netlink
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c
index 86bd8ff..8701416 100644
--- a/zebra/if_netlink.c
+++ b/zebra/if_netlink.c
@@ -23,12 +23,11 @@
#include <zebra.h>
#include "zebra/zserv.h"
-
-extern int interface_lookup_netlink (void);
+#include "rt_netlink.h"
/* Interface information read by netlink. */
void
interface_list (void)
{
- interface_lookup_netlink ();
+ interface_lookup_netlink ();
}
diff --git a/zebra/rt_netlink.h b/zebra/rt_netlink.h
index 0facd49..d8f9db8 100644
--- a/zebra/rt_netlink.h
+++ b/zebra/rt_netlink.h
@@ -41,6 +41,9 @@
nl_rtproto_to_str (u_char rtproto);
+extern int interface_lookup_netlink (void);
+extern int netlink_route_read (void);
+
#endif /* HAVE_NETLINK */
#endif /* _ZEBRA_RT_NETLINK_H */
diff --git a/zebra/rtread_netlink.c b/zebra/rtread_netlink.c
index 066e844..7abbc59 100644
--- a/zebra/rtread_netlink.c
+++ b/zebra/rtread_netlink.c
@@ -23,8 +23,7 @@
#include <zebra.h>
#include "zebra/zserv.h"
-
-extern void netlink_route_read (void);
+#include "rt_netlink.h"
void route_read (void)
{