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: code speed moving from fortran 77 compiler to f2003 compiler
      ... compiler such as IVF? ... interspersed throughout the f77 code. ... I have tried to port the code to IVF in the past but have run ... A code of the size that you have, especially if it is monolithic rather than modular, is going to involve a substantial amount of effort to convert from F77 to F2003 or F95, even if you use tools to do the bulk of the conversion. ...