Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753084AbXLFRxl (ORCPT ); Thu, 6 Dec 2007 12:53:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752177AbXLFRxb (ORCPT ); Thu, 6 Dec 2007 12:53:31 -0500 Received: from rhun.apana.org.au ([64.62.148.172]:1862 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751658AbXLFRxa (ORCPT ); Thu, 6 Dec 2007 12:53:30 -0500 Date: Fri, 7 Dec 2007 04:40:52 +1100 From: Herbert Xu To: Richard Knutsson Cc: David Miller , xiyou.wangcong@gmail.com, linux-kernel@vger.kernel.org, akpm@osdl.org, netdev@vger.kernel.org Subject: Re: [Patch] net/xfrm/xfrm_policy.c: Some small improvements Message-ID: <20071206174052.GA530@gondor.apana.org.au> References: <20071206110123.GB2469@hacking> <20071206.031434.179419183.davem@davemloft.net> <4758093A.7010608@student.ltu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4758093A.7010608@student.ltu.se> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 967 Lines: 23 On Thu, Dec 06, 2007 at 03:37:46PM +0100, Richard Knutsson wrote: > > Is it not an improvement to distinct booleans from actual values? Do you > use integers for ASCII characters too? It can also avoid some potential > bugs like the 'if (i == TRUE)'... > What is wrong with 'size_t' (since it is unsigned, compared to (some) > 'int')? I agree with Dave. There are so many useful things that we can do (and need to do) in IPsec that bool/size_t conversions just add churn without adding much value. Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/