svn commit: r349152 - head/sys/contrib/ipfilter/netinet
Cy Schubert
cy at FreeBSD.org
Mon Jun 17 20:10:56 UTC 2019
Author: cy
Date: Mon Jun 17 20:10:55 2019
New Revision: 349152
URL: https://svnweb.freebsd.org/changeset/base/349152
Log:
Make ipf_objbytes a constant. ipf_objbytes is a table of internal data
structures that are saved across reboots by ipfs(8). The table is not
changed at runtime.
MFC after: 3 days
Modified:
head/sys/contrib/ipfilter/netinet/fil.c
Modified: head/sys/contrib/ipfilter/netinet/fil.c
==============================================================================
--- head/sys/contrib/ipfilter/netinet/fil.c Mon Jun 17 19:49:08 2019 (r349151)
+++ head/sys/contrib/ipfilter/netinet/fil.c Mon Jun 17 20:10:55 2019 (r349152)
@@ -6254,7 +6254,7 @@ ipf_ioctlswitch(softc, unit, data, cmd, mode, uid, ctx
* Flags:
* 1 = minimum size, not absolute size
*/
-static int ipf_objbytes[IPFOBJ_COUNT][3] = {
+static const int ipf_objbytes[IPFOBJ_COUNT][3] = {
{ 1, sizeof(struct frentry), 5010000 }, /* 0 */
{ 1, sizeof(struct friostat), 5010000 },
{ 0, sizeof(struct fr_info), 5010000 },
More information about the svn-src-all
mailing list