diff options
author | paul <paul> | 2005-06-28 17:17:12 +0000 |
---|---|---|
committer | paul <paul> | 2005-06-28 17:17:12 +0000 |
commit | a1ac18c4d5b4f8f4f279efb2ae12b46258f22282 (patch) | |
tree | e37732ef4b00ae98d1be693e721b01cc2566ba39 /zebra/rtread_proc.c | |
parent | 94f2b3923e9663d0355a829f22e4e31cf68ee7b8 (diff) |
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.c | 11 |
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 |