From b30e0223d03f989c2625633f5d91a707162a9d83 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 12 Aug 2020 16:56:51 -0600 Subject: [PATCH] multicall: only enable applets actually compiled in --- cmd/multicall.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmd/multicall.c b/cmd/multicall.c index ccb7688..8f18f81 100644 --- a/cmd/multicall.c +++ b/cmd/multicall.c @@ -23,16 +23,28 @@ char *argv0; +#ifdef CONFIG_IFQUERY extern struct if_applet ifquery_applet; +#endif + +#ifdef CONFIG_IFUPDOWN extern struct if_applet ifup_applet; extern struct if_applet ifdown_applet; +#endif + struct if_applet ifupdown_applet; const struct if_applet *self_applet = NULL; struct if_applet *applet_table[] = { +#ifdef CONFIG_IFUPDOWN &ifdown_applet, +#endif +#ifdef CONFIG_IFQUERY &ifquery_applet, +#endif +#ifdef CONFIG_IFUPDOWN &ifup_applet, +#endif &ifupdown_applet, };