From c1e04bd1b057151afaf7e6138089f2fe2c1b7d1c Mon Sep 17 00:00:00 2001 From: Maciej Zenczykowski Date: Mon, 4 Apr 2011 15:38:11 +0200 Subject: v4: rename do_command() to do_command4() Signed-off-by: Maciej Zenczykowski Signed-off-by: Patrick McHardy --- include/iptables.h | 2 +- iptables-restore.c | 4 ++-- iptables-standalone.c | 2 +- iptables-xml.c | 2 +- iptables.c | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/iptables.h b/include/iptables.h index 204c92ea..65b32909 100644 --- a/include/iptables.h +++ b/include/iptables.h @@ -7,7 +7,7 @@ #include /* Your shared library should call one of these. */ -extern int do_command(int argc, char *argv[], char **table, +extern int do_command4(int argc, char *argv[], char **table, struct iptc_handle **handle); extern int delete_chain4(const ipt_chainlabel chain, int verbose, struct iptc_handle *handle); diff --git a/iptables-restore.c b/iptables-restore.c index 6163a925..e4f0604f 100644 --- a/iptables-restore.c +++ b/iptables-restore.c @@ -438,13 +438,13 @@ main(int argc, char *argv[]) } } - DEBUGP("calling do_command(%u, argv, &%s, handle):\n", + DEBUGP("calling do_command4(%u, argv, &%s, handle):\n", newargc, curtable); for (a = 0; a < newargc; a++) DEBUGP("argv[%u]: %s\n", a, newargv[a]); - ret = do_command(newargc, newargv, + ret = do_command4(newargc, newargv, &newargv[2], &handle); free_argv(); diff --git a/iptables-standalone.c b/iptables-standalone.c index 38dd2c28..b0859464 100644 --- a/iptables-standalone.c +++ b/iptables-standalone.c @@ -62,7 +62,7 @@ main(int argc, char *argv[]) init_extensions4(); #endif - ret = do_command(argc, argv, &table, &handle); + ret = do_command4(argc, argv, &table, &handle); if (ret) { ret = iptc_commit(handle); iptc_free(handle); diff --git a/iptables-xml.c b/iptables-xml.c index 57c7486d..dc3cd4f2 100644 --- a/iptables-xml.c +++ b/iptables-xml.c @@ -844,7 +844,7 @@ main(int argc, char *argv[]) } } - DEBUGP("calling do_command(%u, argv, &%s, handle):\n", + DEBUGP("calling do_command4(%u, argv, &%s, handle):\n", newargc, curTable); for (a = 0; a < newargc; a++) diff --git a/iptables.c b/iptables.c index b7c94981..0995d6f3 100644 --- a/iptables.c +++ b/iptables.c @@ -1413,7 +1413,7 @@ static void command_match(struct iptables_command_state *cs) } } -int do_command(int argc, char *argv[], char **table, struct iptc_handle **handle) +int do_command4(int argc, char *argv[], char **table, struct iptc_handle **handle) { struct iptables_command_state cs; struct ipt_entry *e = NULL; @@ -1437,11 +1437,11 @@ int do_command(int argc, char *argv[], char **table, struct iptc_handle **handle cs.jumpto = ""; cs.argv = argv; - /* re-set optind to 0 in case do_command gets called + /* re-set optind to 0 in case do_command4 gets called * a second time */ optind = 0; - /* clear mflags in case do_command gets called a second time + /* clear mflags in case do_command4 gets called a second time * (we clear the global list of all matches for security)*/ for (m = xtables_matches; m; m = m->next) m->mflags = 0; -- cgit v1.2.3