From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263962AbUGHLpL (ORCPT ); Thu, 8 Jul 2004 07:45:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264482AbUGHLpL (ORCPT ); Thu, 8 Jul 2004 07:45:11 -0400 Received: from 13.2-host.augustakom.net ([80.81.2.13]:39054 "EHLO phoebee.mail") by vger.kernel.org with ESMTP id S263962AbUGHLpC (ORCPT ); Thu, 8 Jul 2004 07:45:02 -0400 Date: Thu, 8 Jul 2004 13:44:59 +0200 From: Martin Zwickel To: Michael Buesch Cc: root@chaos.analogic.com, Herbert Xu , Chris Wright , akpm@osdl.org, torvalds@osdl.org, linux-kernel@vger.kernel.org, sds@epoch.ncsc.mil, jmorris@redhat.com, mika@osdl.org Subject: Re: [PATCH] Use NULL instead of integer 0 in security/selinux/ Message-Id: <20040708134459.6970a20b@phoebee> In-Reply-To: <200407081328.40545.mbuesch@freenet.de> References: <200407081328.40545.mbuesch@freenet.de> X-Mailer: Sylpheed-Claws 0.9.12cvs6 (GTK+ 1.2.10; i686-pc-linux-gnu) X-Operating-System: Linux Phoebee 2.6.7-rc2-mm2 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz X-Face: $rTNP}#i,cVI9h"0NVvD.}[fsnGqI%3=N'~,}hzs bubbled: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Quoting "Richard B. Johnson" : > > Because NULL is a valid pointer value. 0 is not. If you were > > to make 0 valid, you would use "(void *)0", which is what > > NULL just happens to be in all known architectures so far, > > although that could change in an alternate universe. > > No, that is not true. > In C/C++ this is true: > NULL == 0 hmm... include/linux/stddef.h: #undef NULL #if defined(__cplusplus) #define NULL 0 #else #define NULL ((void *)0) #endif -- MyExcuse: fractal radiation jamming the backbone Martin Zwickel Research & Development TechnoTrend AG --Signature=_Thu__8_Jul_2004_13_44_59_+0200_hgbQRhHLi.jyLATC Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA7TO7mjLYGS7fcG0RAly5AJ9h62B9yIoo90eVZZXyxma8KtRgfACgl+ey bZkWiTMUJpTqmDBYxHScwec= =iJ3T -----END PGP SIGNATURE----- --Signature=_Thu__8_Jul_2004_13_44_59_+0200_hgbQRhHLi.jyLATC--