summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
authorJamal Hadi Salim <hadi@cyberus.ca>2009-02-13 09:14:17 -0500
committerJan Engelhardt <jengelh@medozas.de>2009-02-13 15:46:52 +0100
commit7e4db2f50133007f549f222468bde4f3adcf41ac (patch)
tree161425eb53b09d37cc86f961fdb1760548b8e338 /iptables.c
parent70581922f873a88306dd5b1cb83c5081ee239eb8 (diff)
libxtables: consolidate init calls into one function
Introduce xtables_init_all() which hides three calls xtables_init(), xtables_set_nfproto(), and xtables_set_params(). Make ip[6]tables-restore, ip[6]tables-save and ip[6]tables-standalone use it. I moved xtables_set_params around for readability reasons. Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/iptables.c b/iptables.c
index e6b4aa04..2583ec6c 100644
--- a/iptables.c
+++ b/iptables.c
@@ -1352,7 +1352,6 @@ int do_command(int argc, char *argv[], char **table, struct iptc_handle **handle
demand-load a protocol. */
opterr = 0;
- xtables_set_params(&iptables_globals);
while ((c = getopt_long(argc, argv,
"-A:D:R:I:L::S::M:F::Z::N:X::E:P:Vh::o:p:s:d:j:i:fbvnt:m:xc:g:",
opts, NULL)) != -1) {