Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763950AbXHOImH (ORCPT ); Wed, 15 Aug 2007 04:42:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756127AbXHOIlv (ORCPT ); Wed, 15 Aug 2007 04:41:51 -0400 Received: from smtpq2.groni1.gr.home.nl ([213.51.130.201]:51588 "EHLO smtpq2.groni1.gr.home.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754760AbXHOIlu (ORCPT ); Wed, 15 Aug 2007 04:41:50 -0400 Message-ID: <46C2BB60.6010909@gmail.com> Date: Wed, 15 Aug 2007 10:37:52 +0200 From: Rene Herman User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: Jan Engelhardt CC: Jason Uhlenkott , Arjan van de Ven , Tim Bird , linux kernel Subject: Re: kfree(0) - ok? References: <46C233CB.9000602@am.sony.com> <1187132149.2618.2.camel@laptopd505.fenrus.org> <20070814232107.GA4265@aurum.uhlenkott.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 770 Lines: 22 On 08/15/2007 09:28 AM, Jan Engelhardt wrote: > On Aug 14 2007 16:21, Jason Uhlenkott wrote: >> On Tue, Aug 14, 2007 at 15:55:48 -0700, Arjan van de Ven wrote: >>> NULL is not 0 though. >> It is. Its representation isn't guaranteed to be all-bits-zero, > > C guarantees that. C guarantees what? If you're disagreeing with Jason -- he's right. >> but the constant value 0 when used in pointer context is always a >> null pointer (and in fact the standard requires that NULL be >> #defined as 0 or a cast thereof). Rene. - 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/