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-restore.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'iptables/xtables-restore.c') diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index 81b25a43..c6a5ffed 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -363,11 +363,9 @@ xtables_restore_main(int family, const char *progname, int argc, char *argv[]) switch (family) { case NFPROTO_IPV4: case NFPROTO_IPV6: /* fallthough, same table */ -#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS) init_extensions(); init_extensions4(); init_extensions6(); -#endif break; case NFPROTO_ARP: case NFPROTO_BRIDGE: -- cgit v1.2.3