From 088ae8ccee3cc06f4288d1e6dc3eda9513f2cc94 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Thu, 1 Sep 2005 20:36:30 +0000 Subject: [PATCH] small cleanup --- ebtablesd.c | 7 +++---- 1 file 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 " -- 2.7.4