svn commit: r189396 - head/sbin/ipfw

Luigi Rizzo luigi at FreeBSD.org
Thu Mar 5 00:08:10 PST 2009


Author: luigi
Date: Thu Mar  5 08:08:09 2009
New Revision: 189396
URL: http://svn.freebsd.org/changeset/base/189396

Log:
  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).

Modified:
  head/sbin/ipfw/main.c

Modified: head/sbin/ipfw/main.c
==============================================================================
--- head/sbin/ipfw/main.c	Thu Mar  5 08:01:58 2009	(r189395)
+++ head/sbin/ipfw/main.c	Thu Mar  5 08:08:09 2009	(r189396)
@@ -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);


More information about the svn-src-head mailing list