summaryrefslogtreecommitdiffstats
path: root/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
commit088ae8ccee3cc06f4288d1e6dc3eda9513f2cc94 (patch)
tree63125c66bd2d0b8accd753549522fce9972fd1cd /ebtablesd.c
parent92579fe08fccf17583d86b06ec3905e9598a4b8a (diff)
small cleanup
Diffstat (limited to 'ebtablesd.c')
-rw-r--r--ebtablesd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ebtablesd.c b/ebtablesd.c
index d1fef5a..59bbe1c 100644
--- a/ebtablesd.c
+++ b/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 "