summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw/main.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2009-03-05 08:08:09 +0000
committerluigi <luigi@FreeBSD.org>2009-03-05 08:08:09 +0000
commit359ccc0fed13dda0049f5c5df4f7d4b21e6d1c62 (patch)
treef2778eb3f4bf938acb2a86246fc36cd8f99628a4 /sbin/ipfw/main.c
parentb29749721ad4f6cfc71a9bc46fa2458788bafd39 (diff)
downloadFreeBSD-src-359ccc0fed13dda0049f5c5df4f7d4b21e6d1c62.zip
FreeBSD-src-359ccc0fed13dda0049f5c5df4f7d4b21e6d1c62.tar.gz
move a variable declaration to the beginning of the block
(unfortunately, it is far away; we need to pack this code in a better way).
Diffstat (limited to 'sbin/ipfw/main.c')
-rw-r--r--sbin/ipfw/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/main.c b/sbin/ipfw/main.c
index 5cb5a42..a83dd5f 100644
--- a/sbin/ipfw/main.c
+++ b/sbin/ipfw/main.c
@@ -104,6 +104,7 @@ ipfw_main(int oldac, char **oldav)
const char *errstr;
char **av, **save_av;
int do_acct = 0; /* Show packet/byte count */
+ int try_next = 0; /* set if pipe cmd not found */
#define WHITESP " \t\f\v\n\r"
if (oldac < 2)
@@ -332,7 +333,6 @@ ipfw_main(int oldac, char **oldav)
av[1] = p;
}
- int try_next = 0;
if (co.use_set == 0) {
if (_substrcmp(*av, "add") == 0)
ipfw_add(ac, av);
OpenPOWER on IntegriCloud