diff options
author | Maciej Zenczykowski <maze@google.com> | 2011-04-04 15:36:14 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-04-04 15:36:14 +0200 |
commit | e5c061afabf018634a507f00df5b1d0c4bd53a37 (patch) | |
tree | 1d7f8445e6c712ca6ad1dcad8a6c14846a7f6b80 | |
parent | 74ace0a46048d01611a44c24f6fe5f59d936231b (diff) |
v4: rename delete_chain() to delete_chain4()
Signed-off-by: Maciej Zenczykowski <maze@google.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r-- | include/iptables.h | 2 | ||||
-rw-r--r-- | iptables-restore.c | 2 | ||||
-rw-r--r-- | iptables.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/include/iptables.h b/include/iptables.h index a2ed9d6d..4e9ae197 100644 --- a/include/iptables.h +++ b/include/iptables.h @@ -9,7 +9,7 @@ /* Your shared library should call one of these. */ extern int do_command(int argc, char *argv[], char **table, struct iptc_handle **handle); -extern int delete_chain(const ipt_chainlabel chain, int verbose, +extern int delete_chain4(const ipt_chainlabel chain, int verbose, struct iptc_handle *handle); extern int flush_entries4(const ipt_chainlabel chain, int verbose, struct iptc_handle *handle); diff --git a/iptables-restore.c b/iptables-restore.c index 1bdce8a8..6163a925 100644 --- a/iptables-restore.c +++ b/iptables-restore.c @@ -238,7 +238,7 @@ main(int argc, char *argv[]) DEBUGP("Deleting all user-defined chains " "of table '%s'\n", table); - for_each_chain4(delete_chain, verbose, 0, + for_each_chain4(delete_chain4, verbose, 0, handle); } @@ -922,11 +922,11 @@ zero_entries(const ipt_chainlabel chain, int verbose, } int -delete_chain(const ipt_chainlabel chain, int verbose, +delete_chain4(const ipt_chainlabel chain, int verbose, struct iptc_handle *handle) { if (!chain) - return for_each_chain4(delete_chain, verbose, 0, handle); + return for_each_chain4(delete_chain4, verbose, 0, handle); if (verbose) fprintf(stdout, "Deleting chain `%s'\n", chain); @@ -2016,7 +2016,7 @@ int do_command(int argc, char *argv[], char **table, struct iptc_handle **handle ret = iptc_create_chain(chain, *handle); break; case CMD_DELETE_CHAIN: - ret = delete_chain(chain, cs.options&OPT_VERBOSE, *handle); + ret = delete_chain4(chain, cs.options&OPT_VERBOSE, *handle); break; case CMD_RENAME_CHAIN: ret = iptc_rename_chain(chain, newname, *handle); |