Author: glebius Date: Thu Apr 21 08:18:55 2011 New Revision: 220914 URL: http://svn.freebsd.org/changeset/base/220914
Log: Use size_t for sopt_valsize. Submitted by: Brandon Gooch <jamesbrandongooch gmail.com> Modified: head/sys/netinet/ipfw/ip_fw_nat.c Modified: head/sys/netinet/ipfw/ip_fw_nat.c ============================================================================== --- head/sys/netinet/ipfw/ip_fw_nat.c Thu Apr 21 08:15:29 2011 (r220913) +++ head/sys/netinet/ipfw/ip_fw_nat.c Thu Apr 21 08:18:55 2011 (r220914) @@ -346,7 +346,8 @@ ipfw_nat_cfg(struct sockopt *sopt) struct cfg_nat *cfg, *ptr; char *buf; struct ip_fw_chain *chain = &V_layer3_chain; - int gencnt, len, error = 0; + size_t len; + int gencnt, error = 0; len = sopt->sopt_valsize; buf = malloc(len, M_TEMP, M_WAITOK | M_ZERO); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"