diff options
Diffstat (limited to 'zebra/misc_null.c')
-rw-r--r-- | zebra/misc_null.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/zebra/misc_null.c b/zebra/misc_null.c index 73594301..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,18 @@ #include "zebra/irdp.h" #include "zebra/interface.h" +/* 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 + +#pragma weak rtadv_config_write = ifstat_update_proc +#pragma weak irdp_config_write = ifstat_update_proc #pragma weak ifstat_update_sysctl = ifstat_update_proc |