multicall: only enable applets actually compiled in

This commit is contained in:
Ariadne Conill 2020-08-12 16:56:51 -06:00
parent ff4822cf05
commit b30e0223d0

View file

@ -23,16 +23,28 @@
char *argv0; char *argv0;
#ifdef CONFIG_IFQUERY
extern struct if_applet ifquery_applet; extern struct if_applet ifquery_applet;
#endif
#ifdef CONFIG_IFUPDOWN
extern struct if_applet ifup_applet; extern struct if_applet ifup_applet;
extern struct if_applet ifdown_applet; extern struct if_applet ifdown_applet;
#endif
struct if_applet ifupdown_applet; struct if_applet ifupdown_applet;
const struct if_applet *self_applet = NULL; const struct if_applet *self_applet = NULL;
struct if_applet *applet_table[] = { struct if_applet *applet_table[] = {
#ifdef CONFIG_IFUPDOWN
&ifdown_applet, &ifdown_applet,
#endif
#ifdef CONFIG_IFQUERY
&ifquery_applet, &ifquery_applet,
#endif
#ifdef CONFIG_IFUPDOWN
&ifup_applet, &ifup_applet,
#endif
&ifupdown_applet, &ifupdown_applet,
}; };