add a cast to avoid a signed/unsigned warning (to be removed

when we will have TUNABLE_UINT constructors)
This commit is contained in:
Luigi Rizzo 2012-08-01 18:49:00 +00:00
parent 7b2873fb83
commit 71ca24f182
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238977

View File

@ -176,7 +176,7 @@ SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, default_to_accept, CTLFLAG_RDTUN,
&default_to_accept, 0,
"Make the default rule accept all packets.");
TUNABLE_INT("net.inet.ip.fw.default_to_accept", &default_to_accept);
TUNABLE_INT("net.inet.ip.fw.tables_max", &default_fw_tables);
TUNABLE_INT("net.inet.ip.fw.tables_max", (int *)&default_fw_tables);
SYSCTL_VNET_INT(_net_inet_ip_fw, OID_AUTO, static_count,
CTLFLAG_RD, &VNET_NAME(layer3_chain.n_rules), 0,
"Number of static rules");