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/misc_null.c | |
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/misc_null.c')
-rw-r--r-- | zebra/misc_null.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/zebra/misc_null.c b/zebra/misc_null.c index f0269ec2..f37ce657 100644 --- a/zebra/misc_null.c +++ b/zebra/misc_null.c @@ -1,3 +1,7 @@ +/* misc_null.c + * + * This is used only in the testzebra build. + */ #include <zebra.h> #include "prefix.h" @@ -5,7 +9,17 @@ #include "zebra/irdp.h" #include "zebra/interface.h" -void ifstat_update_proc (void) { return; } ; +/* ifstat_update_proc() is defined in if_proc.c -- which is not part of the + * testzebra build. + * + * ifstat_update_proc() is declared in interface.h -- but only if + * #ifdef HAVE_PROC_NET_DEV. + * + * So declare it here as well, to avoid a compiler warning. + */ +extern void ifstat_update_proc (void); + +void ifstat_update_proc (void) { return; } #pragma weak rtadv_config_write = ifstat_update_proc #pragma weak irdp_config_write = ifstat_update_proc |