ipfw2 rev. 1.5 leftovers

Maxim Konovalov maxim at macomnet.ru
Sun Feb 1 06:40:18 PST 2004


[ Sorry if I post to a wrong list ]

Correct me if I am wrong AFAIU there are two leftovers in
rev. 1.5 ipfw/ipfw2.c:

Index: ipfw2.c
===================================================================
RCS file: /home/dcvs/src/sbin/ipfw/ipfw2.c,v
retrieving revision 1.5
diff -u -r1.5 ipfw2.c
--- ipfw2.c	22 Jan 2004 06:20:08 -0000	1.5
+++ ipfw2.c	1 Feb 2004 14:04:51 -0000
@@ -2076,7 +2076,6 @@

 		case TOK_QUEUE:
 			NEED1("queue needs queue size\n");
-			end = NULL;
 			pipe.fs.qsize = getbw(av[0], &pipe.fs.flags_fs, 1024);
 			ac--; av++;
 			break;
@@ -2224,7 +2223,6 @@
 			    pipe.bandwidth = 0;
 			} else {
 			    pipe.if_name[0] = '\0';
-			    pipe.bandwidth = strtoul(av[0], &end, 0);
 			    pipe.bandwidth = getbw(av[0], NULL, 1000);
 			    if (pipe.bandwidth < 0)
 				errx(EX_DATAERR, "bandwidth too large");
%%%

-- 
Maxim Konovalov, maxim at xxxxxxxxxxx, maxim at xxxxxxxxxxx





More information about the Kernel mailing list