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
This commit is contained in:
Cy Schubert 2019-06-17 20:10:55 +00:00
parent f89d207279
commit b8358917db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349152

View File

@ -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 },