summaryrefslogtreecommitdiff
path: root/zebra/rtread_sysctl.c
diff options
context:
space:
mode:
authorpaul <paul>2005-11-23 13:02:08 +0000
committerpaul <paul>2005-11-23 13:02:08 +0000
commit6621ca868c935a82468e07ea2e5a165f40750658 (patch)
tree01db8cd66509c8afd2057558b048fc134c1371b8 /zebra/rtread_sysctl.c
parent5906476bea21153f5d757e364b8e4c604b72cef1 (diff)
[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.
Diffstat (limited to 'zebra/rtread_sysctl.c')
-rw-r--r--zebra/rtread_sysctl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/zebra/rtread_sysctl.c b/zebra/rtread_sysctl.c
index 78864f2b..e39d8cb1 100644
--- a/zebra/rtread_sysctl.c
+++ b/zebra/rtread_sysctl.c
@@ -25,9 +25,12 @@
#include "memory.h"
#include "log.h"
+#include "zebra/zserv.h"
+#include "zebra/rt.h"
+
/* Kernel routing table read up by sysctl function. */
-int
-route_read ()
+void
+route_read (void)
{
caddr_t buf, end, ref;
size_t bufsiz;