From f643eb37e49a212d40eb060bcdfafbc366c0d616 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 26 Aug 2011 12:45:02 +0200 Subject: src: remove unused IPTABLES_MULTI define This dead code has been lingering around since commit v1.4.5~7. Signed-off-by: Jan Engelhardt --- iptables/Makefile.am | 2 +- iptables/ip6tables-restore.c | 4 ---- iptables/ip6tables-save.c | 4 ---- iptables/ip6tables-standalone.c | 5 ----- iptables/iptables-restore.c | 5 ----- iptables/iptables-save.c | 5 ----- iptables/iptables-standalone.c | 5 ----- iptables/iptables-xml.c | 9 --------- 8 files changed, 1 insertion(+), 38 deletions(-) diff --git a/iptables/Makefile.am b/iptables/Makefile.am index a0682788..addb1598 100644 --- a/iptables/Makefile.am +++ b/iptables/Makefile.am @@ -15,7 +15,7 @@ libxtables_la_LIBADD = endif xtables_multi_SOURCES = xtables-multi.c iptables-xml.c -xtables_multi_CFLAGS = ${AM_CFLAGS} -DIPTABLES_MULTI +xtables_multi_CFLAGS = ${AM_CFLAGS} xtables_multi_LDFLAGS = -rdynamic xtables_multi_LDADD = ../extensions/libext.a if ENABLE_STATIC diff --git a/iptables/ip6tables-restore.c b/iptables/ip6tables-restore.c index ae147d55..985744d6 100644 --- a/iptables/ip6tables-restore.c +++ b/iptables/ip6tables-restore.c @@ -113,11 +113,7 @@ static void free_argv(void) { free(newargv[i]); } -#ifdef IPTABLES_MULTI int ip6tables_restore_main(int argc, char *argv[]) -#else -int main(int argc, char *argv[]) -#endif { struct ip6tc_handle *handle = NULL; char buffer[10240]; diff --git a/iptables/ip6tables-save.c b/iptables/ip6tables-save.c index 39a33256..ad0e70f0 100644 --- a/iptables/ip6tables-save.c +++ b/iptables/ip6tables-save.c @@ -131,11 +131,7 @@ static int do_output(const char *tablename) * :Chain name POLICY packets bytes * rule */ -#ifdef IPTABLES_MULTI int ip6tables_save_main(int argc, char *argv[]) -#else -int main(int argc, char *argv[]) -#endif { const char *tablename = NULL; int c; diff --git a/iptables/ip6tables-standalone.c b/iptables/ip6tables-standalone.c index 9d8d5a0f..6b829353 100644 --- a/iptables/ip6tables-standalone.c +++ b/iptables/ip6tables-standalone.c @@ -37,13 +37,8 @@ #include #include "ip6tables-multi.h" -#ifdef IPTABLES_MULTI int ip6tables_main(int argc, char *argv[]) -#else -int -main(int argc, char *argv[]) -#endif { int ret; char *table = "filter"; diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c index 1cb833c0..d0bd79a9 100644 --- a/iptables/iptables-restore.c +++ b/iptables/iptables-restore.c @@ -113,13 +113,8 @@ static void free_argv(void) { free(newargv[i]); } -#ifdef IPTABLES_MULTI int iptables_restore_main(int argc, char *argv[]) -#else -int -main(int argc, char *argv[]) -#endif { struct iptc_handle *handle = NULL; char buffer[10240]; diff --git a/iptables/iptables-save.c b/iptables/iptables-save.c index 7542bdc0..73fba12a 100644 --- a/iptables/iptables-save.c +++ b/iptables/iptables-save.c @@ -129,13 +129,8 @@ static int do_output(const char *tablename) * :Chain name POLICY packets bytes * rule */ -#ifdef IPTABLES_MULTI int iptables_save_main(int argc, char *argv[]) -#else -int -main(int argc, char *argv[]) -#endif { const char *tablename = NULL; int c; diff --git a/iptables/iptables-standalone.c b/iptables/iptables-standalone.c index 87f1d31a..1ebec33d 100644 --- a/iptables/iptables-standalone.c +++ b/iptables/iptables-standalone.c @@ -38,13 +38,8 @@ #include #include "iptables-multi.h" -#ifdef IPTABLES_MULTI int iptables_main(int argc, char *argv[]) -#else -int -main(int argc, char *argv[]) -#endif { int ret; char *table = "filter"; diff --git a/iptables/iptables-xml.c b/iptables/iptables-xml.c index 502b2d96..4ecddcb7 100644 --- a/iptables/iptables-xml.c +++ b/iptables/iptables-xml.c @@ -23,10 +23,6 @@ #define DEBUGP(x, args...) #endif -#ifndef IPTABLES_MULTI -int line = 0; -#endif - struct xtables_globals iptables_xml_globals = { .option_offset = 0, .program_version = IPTABLES_VERSION, @@ -617,13 +613,8 @@ do_rule(char *pcnt, char *bcnt, int argc, char *argv[], int argvattr[]) do_rule_part(NULL, NULL, 1, argc, argv, argvattr); } -#ifdef IPTABLES_MULTI int iptables_xml_main(int argc, char *argv[]) -#else -int -main(int argc, char *argv[]) -#endif { char buffer[10240]; int c; -- cgit v1.2.3