[zebra] fix some small compile errors, mark several functions static
2005-11-23 Paul Jakma <paul.jakma@sun.com>
* (general) fix some small compile errors, and mark several
functions as static.
* kernel_socket.c: (ifan_read) should be static.
fix missing brackets.
(ifm_read,ifam_read,rtm_read_mesg,kernel_read) Make static
(ifam_read_mesg) make static. fix incorrect variable name.
(rtm_read) make static. Fix call to rib_delete_ipv4 which
should be rib_delete_ipv6.
(routing_socket,kernel_init) should be static. Void argument
should be specified as such, not left incomplete.
* rt_netlink.c: rt.h should be included, contains prototypes of
exported functions.
(kernel_delete_ipv6_old) fix sign of index argument.
* rt_socket.c: Exact same as previous. Also, make various
functions static.
* rtread_getmsg.c: Include zserv.h, which prototypes
route_read. Make static.
* rtread_sysctl.c: zserv.h and rt.h should be included.
fix definition of route_read.
diff --git a/zebra/rtread_getmsg.c b/zebra/rtread_getmsg.c
index ff6d7bc..1b0c896 100644
--- a/zebra/rtread_getmsg.c
+++ b/zebra/rtread_getmsg.c
@@ -27,6 +27,7 @@
#include "if.h"
#include "zebra/rib.h"
+#include "zebra/zserv.h"
#include <sys/stream.h>
#include <sys/tihdr.h>
@@ -65,7 +66,8 @@
#define RT_BUFSIZ 8192
-void handle_route_entry (mib2_ipRouteEntry_t *routeEntry)
+static void
+handle_route_entry (mib2_ipRouteEntry_t *routeEntry)
{
struct prefix_ipv4 prefix;
struct in_addr tmpaddr, gateway;
@@ -91,7 +93,8 @@
&gateway, 0, 0, 0, 0);
}
-void route_read ()
+void
+route_read (void)
{
char storage[RT_BUFSIZ];