aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipfw/main.c
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2009-03-05 08:08:09 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2009-03-05 08:08:09 +0000
commit1fd3fc69880f7f0636d82816ae285e2343664ee0 (patch)
treef2778eb3f4bf938acb2a86246fc36cd8f99628a4 /sbin/ipfw/main.c
parentd7a32e24afb1f94e050a8fbea7e1a30a025eadce (diff)
downloadsrc-1fd3fc69880f7f0636d82816ae285e2343664ee0.tar.gz
src-1fd3fc69880f7f0636d82816ae285e2343664ee0.zip
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).
Notes
Notes: svn path=/head/; revision=189396
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 5cb5a4202e35..a83dd5fe17cc 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);