diff options
author | Chris Hall <GMCH@hestia.halldom.com> | 2010-04-17 16:11:13 +0100 |
---|---|---|
committer | Chris Hall <GMCH@hestia.halldom.com> | 2010-04-17 16:11:13 +0100 |
commit | 825f338d44433fc2d351c08d41272f52a15329db (patch) | |
tree | 927c6a37e8dbf4c425d845895500b59ac997fbfb /zebra/interface.h | |
parent | 68297cc9dc2eb920dd6e956d0d55098ea9edaafc (diff) | |
download | quagga-825f338d44433fc2d351c08d41272f52a15329db.tar.bz2 quagga-825f338d44433fc2d351c08d41272f52a15329db.tar.xz |
Fixing declarations to eliminate compiler warnings in zebra.
Only parts of zebra/*.c are compiled and linked, depending on what
was chosen at "configure" time. A subset of that is compiled and
linked for testzebra.
Some things were not declared, or not declared everywhere they
were required... leading to a number of compiler warnings.
These changes are intended to tidy that up.
Diffstat (limited to 'zebra/interface.h')
-rw-r--r-- | zebra/interface.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/zebra/interface.h b/zebra/interface.h index 0cf66403..e07388cb 100644 --- a/zebra/interface.h +++ b/zebra/interface.h @@ -225,21 +225,20 @@ extern int if_subnet_add (struct interface *, struct connected *); extern int if_subnet_delete (struct interface *, struct connected *); #ifdef HAVE_PROC_NET_DEV -extern void ifstat_update_proc (void); +extern void ifstat_update_proc (void); /* see if_proc.c */ +extern int interface_list_proc (void); /* see if_proc.c */ #endif /* HAVE_PROC_NET_DEV */ + +#if defined(HAVE_IPV6) && defined(HAVE_PROC_NET_IF_INET6) +extern int ifaddr_proc_ipv6 (void); /* see if_proc.c */ +#endif /* HAVE_PROC_NET_IF_INET6 */ + #ifdef HAVE_NET_RT_IFLIST extern void ifstat_update_sysctl (void); - #endif /* HAVE_NET_RT_IFLIST */ -#ifdef HAVE_PROC_NET_DEV -extern int interface_list_proc (void); -#endif /* HAVE_PROC_NET_DEV */ -#ifdef HAVE_PROC_NET_IF_INET6 -extern int ifaddr_proc_ipv6 (void); -#endif /* HAVE_PROC_NET_IF_INET6 */ #ifdef BSDI -extern int if_kvm_get_mtu (struct interface *); +extern int if_kvm_get_mtu (struct interface *); /* see mtu_kvm.c */ #endif /* BSDI */ #endif /* _ZEBRA_INTERFACE_H */ |