summaryrefslogtreecommitdiffstats
path: root/zebra/rtread_proc.c
diff options
context:
space:
mode:
authorpaul <paul>2005-06-28 17:17:12 +0000
committerpaul <paul>2005-06-28 17:17:12 +0000
commit308650755ded752cf1303ef177979e2bd9885aa6 (patch)
treef2a30dfa52f1e91da25f9911dbe9734fe923201d /zebra/rtread_proc.c
parent4951cb4ced7d569a7268f6e8c61c3ddfed8760a1 (diff)
downloadquagga-308650755ded752cf1303ef177979e2bd9885aa6.tar.bz2
quagga-308650755ded752cf1303ef177979e2bd9885aa6.tar.xz
2005-06-28 Paul Jakma <paul.jakma@sun.com>
* (global) Extern and static'ification, with related fixups of declarations, ensuring files include their own headers, etc. if_ioctl.c: (interface_info_ioctl) fix obvious arg mis-order in list loop
Diffstat (limited to 'zebra/rtread_proc.c')
-rw-r--r--zebra/rtread_proc.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/zebra/rtread_proc.c b/zebra/rtread_proc.c
index 491fc987..ab3891a3 100644
--- a/zebra/rtread_proc.c
+++ b/zebra/rtread_proc.c
@@ -27,6 +27,9 @@
#include "if.h"
#include "rib.h"
+#include "zebra/zserv.h"
+#include "zebra/rt.h"
+
/* Proc file system to read IPv4 routing table. */
#ifndef _PATH_PROCNET_ROUTE
#define _PATH_PROCNET_ROUTE "/proc/net/route"
@@ -44,8 +47,8 @@
#define RT_BUFSIZ 1024
/* Kernel routing table read up by /proc filesystem. */
-int
-proc_route_read ()
+static int
+proc_route_read (void)
{
FILE *fp;
char buf[RT_BUFSIZ];
@@ -101,7 +104,7 @@ proc_route_read ()
}
#ifdef HAVE_IPV6
-int
+static int
proc_ipv6_route_read ()
{
FILE *fp;
@@ -162,7 +165,7 @@ proc_ipv6_route_read ()
#endif /* HAVE_IPV6 */
void
-route_read ()
+route_read (void)
{
proc_route_read ();
#ifdef HAVE_IPV6