summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/ebtablesd.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2005-09-01 20:36:30 +0000
committerBart De Schuymer <bdschuym@pandora.be>2005-09-01 20:36:30 +0000
commit1dfb6cc6d0949bc1f882b1b71ff9cbc9e61b86d0 (patch)
tree2686878935b4565af11a6ee9071cc83844aca42a /userspace/ebtables2/ebtablesd.c
parent8f42c0af0727dee97085278144008aa734203aa8 (diff)
small cleanup
Diffstat (limited to 'userspace/ebtables2/ebtablesd.c')
-rw-r--r--userspace/ebtables2/ebtablesd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/userspace/ebtables2/ebtablesd.c b/userspace/ebtables2/ebtablesd.c
index d1fef5a..59bbe1c 100644
--- a/userspace/ebtables2/ebtablesd.c
+++ b/userspace/ebtables2/ebtablesd.c
@@ -52,7 +52,7 @@ int main(int argc_, char *argv_[])
char *argv[EBTD_ARGC_MAX], *args[4], name[] = "mkdir",
mkdir_option[] = "-p", mkdir_dir[] = EBTD_PIPE_DIR,
cmdline[EBTD_CMDLINE_MAXLN];
- int readfd, stop = 0, base = 0, offset = 0, n = 0, ret = 0;
+ int readfd, base = 0, offset = 0, n = 0, ret = 0;
/* Make sure the pipe directory exists */
args[0] = name;
@@ -95,7 +95,7 @@ int main(int argc_, char *argv_[])
copy_table_names();
ebt_early_init_once();
- while (!stop) {
+ while (1) {
int n2, i, argc, table_nr, ntot;
/* base == 0 */
@@ -343,8 +343,7 @@ continue_read:
"not take any arguments");
goto write_msg;
}
- stop = 1;
- goto write_msg;
+ break;
}
if (!(replace[table_nr].flags & OPT_KERNELDATA)) {
ebt_print_error("ebtablesd: table %s has not been "