Re: [PATCH] Use NULL instead of integer 0 in security/selinux/

From: Andrea Arcangeli (
Date: 07/10/04

  • Next message: "Re: umount() and NFS races in 2.4.26"
    Date:	Sat, 10 Jul 2004 09:02:55 +0200
    To: "P. Benie" <>

    On Thu, Jul 08, 2004 at 12:43:16PM +0100, P. Benie wrote:
    > the integer 0 and null pointers are not the same, the compiler will
    > perform the appropriate conversion for you, so it is always correct to
    > define NULL as (void *)0.

    exactly, the compiler knows about that.

    > Personally, I always use 0 and NULL for integers and null pointers
    > respectively, but that's because of long estalished conventions that make
    > the code readabile, rather than anything to do with validity of the code.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

  • Next message: "Re: umount() and NFS races in 2.4.26"

    Relevant Pages

    • Re: 2.6.5-mc2
      ... > The compiler has -1) and then has to promote it to ULL. ... > the conversion to unsigned before the conversion to long long, ... send the line "unsubscribe linux-kernel" in ...
    • Re: Smaller C compiler
      ... > undefined behavior from printf. ... the 8-digit displayed values implies the compiler ... if the result of a conversion is wider than the field ... provided that I don't shift by more than 15 at a time. ...
    • Re: writeObject signature
      ... > or the compiler must do a cast to Object. ... Java refers to a syntax for type conversion -- namely, ... it would be wrong (or bad design) to ...
    • Re: Is this expected behavior or not
      ... That does not explain why representation needs to be checked. ... the compiler should be free to choose. ... routine was inherited or called by a conversion of an operand). ... No model exist which would allow re-dispatch on scalar value. ...
    • RE: pop-forum getting rid of ALL the special ved characters indocumentation files
      ... pop-11 for teaching. ... So although the Emacs conversion package will help Emacs users (who ... the compiler, the ability to keep track of changes to search lists, ... standard format, I'll make this the standard format, and make the ...