diff options
author | Phil Sutter <phil@nwl.cc> | 2022-03-15 12:25:21 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-03-15 14:53:52 +0100 |
commit | 6c689b639cf8e2aeced8685eca2915892d76ad86 (patch) | |
tree | fba72e5c79936c2640e7454c8818a24ec4f0fe56 /iptables/iptables-restore.c | |
parent | 0c8e253595bd80e4ddd73230d079e33cd5420b32 (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/iptables-restore.c')
-rw-r--r-- | iptables/iptables-restore.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c index 1917fb23..d8f65ce1 100644 --- a/iptables/iptables-restore.c +++ b/iptables/iptables-restore.c @@ -383,10 +383,8 @@ iptables_restore_main(int argc, char *argv[]) iptables_globals.program_version); exit(1); } -#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS) init_extensions(); init_extensions4(); -#endif ret = ip46tables_restore_main(&ipt_restore_cb, argc, argv); @@ -417,10 +415,8 @@ ip6tables_restore_main(int argc, char *argv[]) ip6tables_globals.program_version); exit(1); } -#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS) init_extensions(); init_extensions6(); -#endif ret = ip46tables_restore_main(&ip6t_restore_cb, argc, argv); |