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-arp.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'iptables/xtables-arp.c') diff --git a/iptables/xtables-arp.c b/iptables/xtables-arp.c index 805fb19a..9c44cfc2 100644 --- a/iptables/xtables-arp.c +++ b/iptables/xtables-arp.c @@ -205,10 +205,7 @@ int nft_init_arp(struct nft_handle *h, const char *pname) arptables_globals.program_version); exit(1); } - -#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS) init_extensionsa(); -#endif if (nft_init(h, NFPROTO_ARP) < 0) xtables_error(OTHER_PROBLEM, -- cgit v1.2.3