summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-save.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-03-15 12:25:21 +0100
committerPhil Sutter <phil@nwl.cc>2022-03-15 14:53:52 +0100
commit6c689b639cf8e2aeced8685eca2915892d76ad86 (patch)
treefba72e5c79936c2640e7454c8818a24ec4f0fe56 /iptables/xtables-save.c
parent0c8e253595bd80e4ddd73230d079e33cd5420b32 (diff)
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 <phil@nwl.cc>
Diffstat (limited to 'iptables/xtables-save.c')
-rw-r--r--iptables/xtables-save.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/iptables/xtables-save.c b/iptables/xtables-save.c
index 03d2b980..9bbe8511 100644
--- a/iptables/xtables-save.c
+++ b/iptables/xtables-save.c
@@ -202,11 +202,9 @@ xtables_save_main(int family, 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
d.commit = true;
break;
case NFPROTO_ARP: