From owner-svn-src-all@FreeBSD.ORG Tue Oct 14 14:34:35 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A77E1065691; Tue, 14 Oct 2008 14:34:35 +0000 (UTC) (envelope-from rik@inse.ru) Received: from mail.inse.ru (mail.inse.ru [144.206.128.1]) by mx1.freebsd.org (Postfix) with ESMTP id 3EB508FC0A; Tue, 14 Oct 2008 14:34:35 +0000 (UTC) (envelope-from rik@inse.ru) Received: from [127.0.0.1] (www.inse.ru [144.206.128.1]) by mail.inse.ru (Postfix) with ESMTPSA id 48A2F33C51; Tue, 14 Oct 2008 18:16:02 +0400 (MSD) Message-ID: <48F4A9A5.8020605@inse.ru> Date: Tue, 14 Oct 2008 18:16:05 +0400 From: Roman Kurakin User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Maxim Konovalov References: <200810141226.m9ECQtPW006469@svn.freebsd.org> In-Reply-To: <200810141226.m9ECQtPW006469@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r183881 - head/sys/netinet X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2008 14:34:35 -0000 Maxim Konovalov: > Author: maxim > Date: Tue Oct 14 12:26:55 2008 > New Revision: 183881 > URL: http://svn.freebsd.org/changeset/base/183881 > > Log: > o Reformat ipfw nat get|setsockopt code to look it more > style(9) compliant. No functional changes. > > Modified: > head/sys/netinet/ip_fw2.c > > Modified: head/sys/netinet/ip_fw2.c > ============================================================================== > --- head/sys/netinet/ip_fw2.c Tue Oct 14 10:23:11 2008 (r183880) > +++ head/sys/netinet/ip_fw2.c Tue Oct 14 12:26:55 2008 (r183881) > @@ -4385,49 +4385,52 @@ ipfw_ctl(struct sockopt *sopt) > break; > > case IP_FW_NAT_CFG: > - { > - if (IPFW_NAT_LOADED) > - error = ipfw_nat_cfg_ptr(sopt); > - else { > - printf("IP_FW_NAT_CFG: ipfw_nat not present, please load it.\n"); > - error = EINVAL; > + { > + if (IPFW_NAT_LOADED) > + error = ipfw_nat_cfg_ptr(sopt); > + else { > + printf("IP_FW_NAT_CFG: %s\n", > + "ipfw_nat not present, please load it"); > + error = EINVAL; > + } > } > IMHO such indention does not add any usefulness, but increases indention level that is already very high. Also I do not see strict contradiction to the style(9), but probably I am not reading the most current style(9). rik