svn commit: r238977 - head/sys/netinet/ipfw

Luigi Rizzo luigi at FreeBSD.org
Wed Aug 1 18:49:01 UTC 2012


Author: luigi
Date: Wed Aug  1 18:49:00 2012
New Revision: 238977
URL: http://svn.freebsd.org/changeset/base/238977

Log:
  add a cast to avoid a signed/unsigned warning (to be removed
  when we will have TUNABLE_UINT constructors)

Modified:
  head/sys/netinet/ipfw/ip_fw2.c

Modified: head/sys/netinet/ipfw/ip_fw2.c
==============================================================================
--- head/sys/netinet/ipfw/ip_fw2.c	Wed Aug  1 17:48:38 2012	(r238976)
+++ head/sys/netinet/ipfw/ip_fw2.c	Wed Aug  1 18:49:00 2012	(r238977)
@@ -176,7 +176,7 @@ SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, de
     &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");


More information about the svn-src-all mailing list