summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-28 10:47:30 -0700
committerPaul Jakma <paul@quagga.net>2009-06-18 20:18:25 +0100
commitc84154977d822ceee9df66be535c56cb5f0fce10 (patch)
tree460e5d46b94200f8febcca5029a882a8f752a29e
parent61691c91c15445445b0ac246ee12e559a4cacdb5 (diff)
[zebra] netlink interface minor cleanup
Add more prototypes and make some functions static
-rw-r--r--zebra/if_netlink.c5
-rw-r--r--zebra/rtread_netlink.c6
2 files changed, 4 insertions, 7 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c
index c9c14760..701c81b6 100644
--- a/zebra/if_netlink.c
+++ b/zebra/if_netlink.c
@@ -22,12 +22,11 @@
#include <zebra.h>
-/* Extern from rt_netlink.c */
-void interface_lookup_netlink ();
+extern int interface_lookup_netlink (void);
/* Interface information read by netlink. */
void
-interface_list ()
+interface_list (void)
{
interface_lookup_netlink ();
}
diff --git a/zebra/rtread_netlink.c b/zebra/rtread_netlink.c
index 0b255a53..44715d94 100644
--- a/zebra/rtread_netlink.c
+++ b/zebra/rtread_netlink.c
@@ -21,11 +21,9 @@
*/
#include <zebra.h>
+extern void netlink_route_read (void);
-/* Extern from rt_netlink.c */
-void netlink_route_read ();
-
-void route_read ()
+void route_read (void)
{
netlink_route_read ();
}