[lkml]   [2003]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: -rc7 Re: Linux 2.4.21-rc6
    In article <>,
    Nick Piggin <> wrote:
    >- char plugged;
    >+ int plugged:1;

    This is dangerous:

    struct foo {
    int bla:1;

    int main()
    struct foo f;

    f.bla = 1;
    printf("%d\n", f.bla);

    $ ./a.out

    If you want to put "0" and "1" in a 1-bit field, use "unsigned int bla:1".

    .. somehow I have a feeling the hurting hasn't even begun yet
    -- Bill, "The Terrible Thunderlizards"

    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 13:36    [W:0.018 / U:13.244 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site