Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 2003 18:21:04 +0300
From:      Vasil Dimov <vd@datamax.bg>
To:        freebsd-bugs@freebsd.org
Subject:   ipfw2.c typos patch
Message-ID:  <20030504152104.GA40911@sinanica.lg2a.datamax>

next in thread | raw e-mail | index | archive | help

--Kj7319i9nmIyA2yE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Sorry, I forgot to attach ipfw2.c.patch to the bug report.

--Kj7319i9nmIyA2yE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ipfw2.c.patch"

--- ipfw2.c.orig	Sat Mar 15 03:12:59 2003
+++ ipfw2.c	Sun May  4 18:12:44 2003
@@ -2782,7 +2782,7 @@
 			cmd = next_cmd(cmd);
 		}
 	} else if (first_cmd != cmd) {
-		errx(EX_DATAERR, "invalid protocol ``%s''", av);
+		errx(EX_DATAERR, "invalid protocol ``%s''", *av);
 	} else
 		goto read_options;
     OR_BLOCK(get_proto);
@@ -3115,7 +3115,7 @@
 				proto = cmd->arg1;
 				ac--; av++;
 			} else
-				errx(EX_DATAERR, "invalid protocol ``%s''", av);
+				errx(EX_DATAERR, "invalid protocol ``%s''", *av);
 			break;
 
 		case TOK_SRCIP:
@@ -3162,7 +3162,7 @@
 		case TOK_MACTYPE:
 			NEED1("missing mac type");
 			if (!add_mactype(cmd, ac, *av))
-				errx(EX_DATAERR, "invalid mac type %s", av);
+				errx(EX_DATAERR, "invalid mac type %s", *av);
 			ac--; av++;
 			break;
 

--Kj7319i9nmIyA2yE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030504152104.GA40911>