From 0f4b2cb8756bf6215aceb7ed6ebfb15102f12c55 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 25 Aug 2019 01:09:31 +0000 Subject: [PATCH] MFC r351380: Specifying array sizes for fully initialized tables at compile time is redundant. git-svn-id: svn://svn.freebsd.org/base/stable/10@351468 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/contrib/ipfilter/netinet/fil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/contrib/ipfilter/netinet/fil.c b/sys/contrib/ipfilter/netinet/fil.c index 9166dab59..007ce6c69 100644 --- a/sys/contrib/ipfilter/netinet/fil.c +++ b/sys/contrib/ipfilter/netinet/fil.c @@ -232,7 +232,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 }, @@ -273,7 +273,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 }, -- 2.42.0