summaryrefslogtreecommitdiffstats
path: root/iptables-standalone.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-01-27 15:59:06 +0100
committerJan Engelhardt <jengelh@medozas.de>2009-01-27 23:14:30 +0100
commit39bf9c8214d3073a496a8a1eff91046a8d6fbbdf (patch)
tree2dd9a61eb114cdaaa6fe44f895784f112d24ca56 /iptables-standalone.c
parent2338efd8f799d8373dc196c797bda9690283b698 (diff)
libxtables: prefix/order - libdir
Consolidate the libdir variable initialization code into xtables.c. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'iptables-standalone.c')
-rw-r--r--iptables-standalone.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/iptables-standalone.c b/iptables-standalone.c
index 3f2432fe..c06b2862 100644
--- a/iptables-standalone.c
+++ b/iptables-standalone.c
@@ -53,16 +53,7 @@ main(int argc, char *argv[])
program_name = "iptables";
program_version = XTABLES_VERSION;
- lib_dir = getenv("XTABLES_LIBDIR");
- if (lib_dir == NULL) {
- lib_dir = getenv("IPTABLES_LIB_DIR");
- if (lib_dir != NULL)
- fprintf(stderr, "IPTABLES_LIB_DIR is deprecated, "
- "use XTABLES_LIBDIR.\n");
- }
- if (lib_dir == NULL)
- lib_dir = XTABLES_LIBDIR;
-
+ xtables_init();
#ifdef NO_SHARED_LIBS
init_extensions();
#endif