diff options
author | luigi <luigi@FreeBSD.org> | 2012-08-01 18:49:00 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2012-08-01 18:49:00 +0000 |
commit | bf14eed58223f56710ccbc498220739ee7b2b61e (patch) | |
tree | cf0d5881c31bb91011917c660faf5d00b7b5d9b8 | |
parent | 17b60f53078a3491b044f9fd7bb418043dcdf207 (diff) | |
download | FreeBSD-src-bf14eed58223f56710ccbc498220739ee7b2b61e.zip FreeBSD-src-bf14eed58223f56710ccbc498220739ee7b2b61e.tar.gz |
add a cast to avoid a signed/unsigned warning (to be removed
when we will have TUNABLE_UINT constructors)
-rw-r--r-- | sys/netinet/ipfw/ip_fw2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ipfw/ip_fw2.c b/sys/netinet/ipfw/ip_fw2.c index 21a00bb..7559a50 100644 --- a/sys/netinet/ipfw/ip_fw2.c +++ b/sys/netinet/ipfw/ip_fw2.c @@ -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"); |