From a1ac18c4d5b4f8f4f279efb2ae12b46258f22282 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 28 Jun 2005 17:17:12 +0000 Subject: 2005-06-28 Paul Jakma * (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 --- zebra/rtread_proc.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'zebra/rtread_proc.c') 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 -- cgit v1.2.1