svn commit: r351380 - head/sys/contrib/ipfilter/netinet

Cy Schubert cy at FreeBSD.org
Thu Aug 22 03:33:10 UTC 2019


Author: cy
Date: Thu Aug 22 03:33:10 2019
New Revision: 351380
URL: https://svnweb.freebsd.org/changeset/base/351380

Log:
  Specifying array sizes for fully initialized tables at compile time is
  redundant.
  
  MFC after:	1 week

Modified:
  head/sys/contrib/ipfilter/netinet/fil.c

Modified: head/sys/contrib/ipfilter/netinet/fil.c
==============================================================================
--- head/sys/contrib/ipfilter/netinet/fil.c	Thu Aug 22 03:28:31 2019	(r351379)
+++ head/sys/contrib/ipfilter/netinet/fil.c	Thu Aug 22 03:33:10 2019	(r351380)
@@ -194,7 +194,7 @@ static	int		ppsratecheck(struct timeval *, int *, int)
  * hand side to allow for binary searching of the array and include a trailer
  * with a 0 for the bitmask for linear searches to easily find the end with.
  */
-static const	struct	optlist	ipopts[20] = {
+static const	struct	optlist	ipopts[] = {
 	{ IPOPT_NOP,	0x000001 },
 	{ IPOPT_RR,	0x000002 },
 	{ IPOPT_ZSU,	0x000004 },
@@ -235,7 +235,7 @@ static const struct optlist ip6exthdr[] = {
 /*
  * bit values for identifying presence of individual IP security options
  */
-static const	struct	optlist	secopt[8] = {
+static const	struct	optlist	secopt[] = {
 	{ IPSO_CLASS_RES4,	0x01 },
 	{ IPSO_CLASS_TOPS,	0x02 },
 	{ IPSO_CLASS_SECR,	0x04 },


More information about the svn-src-head mailing list