]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: clean up misc_null pragmas
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 3 Mar 2015 08:14:46 +0000 (09:14 +0100)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 7 Jun 2016 13:43:32 +0000 (09:43 -0400)
The no-op alternatives provided in misc_null trigger a few warnings
since they provide functions / use pragmas without prototypes.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit a3466abd93f83424f9f83e56282e42188e1f94ce)

zebra/misc_null.c

index 4137dc00383982c12c878e51b5589cc0b34fbecd..a83c307413c7d90503335017a40d37787ae79a8b 100644 (file)
 
 void rtadv_config_write (struct vty *vty, struct interface *ifp) { return; }
 void irdp_config_write (struct vty *vty, struct interface *ifp) { return; }
+#ifdef HAVE_PROC_NET_DEV
+void ifstat_update_proc (void) { return; }
+#endif
+#ifdef HAVE_NET_RT_IFLIST
+void ifstat_update_sysctl (void) { return; }
+#endif
 
 void
 zfpm_trigger_update (struct route_node *rn, const char *reason)