From owner-freebsd-current@FreeBSD.ORG Mon Mar 1 08:42:37 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 379CE16A4CE for ; Mon, 1 Mar 2004 08:42:37 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2BEA43D49 for ; Mon, 1 Mar 2004 08:42:36 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id F21C65309; Mon, 1 Mar 2004 17:42:35 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id EE69A5308; Mon, 1 Mar 2004 17:42:28 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 7273B33C6B; Mon, 1 Mar 2004 17:42:28 +0100 (CET) To: Mark Murray References: <200402291546.i1TFkZ0w070591@grimreaper.grondar.org> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 01 Mar 2004 17:42:28 +0100 In-Reply-To: <200402291546.i1TFkZ0w070591@grimreaper.grondar.org> (Mark Murray's message of "Sun, 29 Feb 2004 15:46:35 +0000") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: current@freebsd.org Subject: Re: NULL vs 0 vs 0L bikeshed time X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2004 16:42:37 -0000 Mark Murray writes: > I'd like to commit the following patch. It makes sure that for C > and the kernel, NULL is a ((void *)0) This is not correct, because it makes NULL unusable for function pointers; you can assign 0 to a function pointer, but not (void *)0. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no