From owner-freebsd-current@FreeBSD.ORG Mon Mar 1 09:09:16 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 5DF2D16A4CE for ; Mon, 1 Mar 2004 09:09:16 -0800 (PST) Received: from dignus.com (ip-64-32-254-102.dsl.iad.megapath.net [64.32.254.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD04F43D1F for ; Mon, 1 Mar 2004 09:09:15 -0800 (PST) (envelope-from rivers@dignus.com) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.12.8p1/8.12.8) with ESMTP id i21H8jR2029418; Mon, 1 Mar 2004 12:08:45 -0500 (EST) (envelope-from rivers@dignus.com) Received: (from rivers@localhost) by lakes.dignus.com (8.11.6/8.11.3) id i21H7bY96897; Mon, 1 Mar 2004 12:07:37 -0500 (EST) (envelope-from rivers) Date: Mon, 1 Mar 2004 12:07:37 -0500 (EST) From: Thomas David Rivers Message-Id: <200403011707.i21H7bY96897@lakes.dignus.com> To: des@des.no, mark@grondar.org In-Reply-To: X-Spam-Status: No, hits=-7.1 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,QUOTE_TWICE_1 version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) 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 17:09:16 -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 > -- > Dag-Erling Smørgrav - des@des.no That assignment seems to work... I thought (void *) was assignable to any function pointer... (Isn't (void *) assignable to any pointer?) - Dave R. - -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com