Browse Source

zebra: use prototypes/includes in rt_netlink

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
David Lamparter 6 years ago
parent
commit
48ab06b430
3 changed files with 6 additions and 5 deletions
  1. 2 3
      zebra/if_netlink.c
  2. 3 0
      zebra/rt_netlink.h
  3. 1 2
      zebra/rtread_netlink.c

+ 2 - 3
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 ();
 }

+ 3 - 0
zebra/rt_netlink.h

@@ -41,6 +41,9 @@ extern const char *
 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 */

+ 1 - 2
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)
 {