[lkml]   [2001]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: page_launder() bug
    Followup to:  <Pine.LNX.4.33.0105070823060.24073-100000@svea.tellus>
    By author: Tobias Ringstrom <>
    In newsgroup:
    > On Sun, 6 May 2001, David S. Miller wrote:
    > > It is the most straightforward way to make a '1' or '0'
    > > integer from the NULL state of a pointer.
    > But is it really specified in the C "standards" to be exctly zero or one,
    > and not zero and non-zero?

    Yes it is.

    > IMHO, the ?: construct is way more readable and reliable.

    In C99 one can write (bool)foo which is more readable than either,
    especially since that is really what one is trying to do.

    <> at work, <> in private!
    "Unix gives you enough rope to shoot yourself in the foot."
    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

     \ /
      Last update: 2005-03-22 12:52    [W:0.020 / U:4.600 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site