From 6c689b639cf8e2aeced8685eca2915892d76ad86 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 15 Mar 2022 12:25:21 +0100 Subject: Simplify static build extension loading Instead of guarding all calls to init_extensions*(), define stubs if not used. While at it, also add the missing prototypes for arp- and ebtables extension initializers. Signed-off-by: Phil Sutter --- iptables/xtables-standalone.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'iptables/xtables-standalone.c') diff --git a/iptables/xtables-standalone.c b/iptables/xtables-standalone.c index 5482a856..06fedf26 100644 --- a/iptables/xtables-standalone.c +++ b/iptables/xtables-standalone.c @@ -67,7 +67,6 @@ xtables_main(int family, const char *progname, int argc, char *argv[]) exit(1); } xt_params->program_name = progname; -#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS) switch (family) { case NFPROTO_IPV4: case NFPROTO_IPV6: @@ -79,7 +78,6 @@ xtables_main(int family, const char *progname, int argc, char *argv[]) init_extensionsa(); break; } -#endif if (nft_init(&h, family) < 0) { fprintf(stderr, "%s: Failed to initialize nft: %s\n", -- cgit v1.2.3