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:
parent
f89d207279
commit
b8358917db
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349152
@ -6254,7 +6254,7 @@ ipf_ioctlswitch(softc, unit, data, cmd, mode, uid, ctx)
|
|||||||
* Flags:
|
* Flags:
|
||||||
* 1 = minimum size, not absolute size
|
* 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 frentry), 5010000 }, /* 0 */
|
||||||
{ 1, sizeof(struct friostat), 5010000 },
|
{ 1, sizeof(struct friostat), 5010000 },
|
||||||
{ 0, sizeof(struct fr_info), 5010000 },
|
{ 0, sizeof(struct fr_info), 5010000 },
|
||||||
|
Loading…
Reference in New Issue
Block a user