Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2011 08:18:55 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r220914 - head/sys/netinet/ipfw
Message-ID:  <201104210818.p3L8ItDM087003@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104210818.p3L8ItDM087003>