From owner-cvs-src-old@FreeBSD.ORG Wed Dec 23 18:53:27 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76D0310656F8 for ; Wed, 23 Dec 2009 18:53:27 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 64E378FC15 for ; Wed, 23 Dec 2009 18:53:27 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nBNIrR9X051243 for ; Wed, 23 Dec 2009 18:53:27 GMT (envelope-from luigi@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nBNIrR4Z051242 for cvs-src-old@freebsd.org; Wed, 23 Dec 2009 18:53:27 GMT (envelope-from luigi@repoman.freebsd.org) Message-Id: <200912231853.nBNIrR4Z051242@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to luigi@repoman.freebsd.org using -f From: Luigi Rizzo Date: Wed, 23 Dec 2009 18:53:11 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet/ipfw ip_fw_nat.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2009 18:53:27 -0000 luigi 2009-12-23 18:53:11 UTC FreeBSD src repository Modified files: sys/netinet/ipfw ip_fw_nat.c Log: SVN rev 200909 on 2009-12-23 18:53:11Z by luigi mostly style changes, such as removal of trailing whitespace, reformatting to avoid unnecessary line breaks, small block restructuring to avoid unnecessary nesting, replace macros with function calls, etc. As a side effect of code restructuring, this commit fixes one bug: previously, if a realloc() failed, memory was leaked. Now, the realloc is not there anymore, as we first count how much memory we need and then do a single malloc. Revision Changes Path 1.10 +152 -183 src/sys/netinet/ipfw/ip_fw_nat.c