lkml.org 
[lkml]   [2007]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] removes array_size duplicates
    On Mon, 1 Oct 2007, Robert P. J. Day wrote:

    ...
    > among other things, one of the creepy issues here is the definition in
    > include/linux/netfilter/xt_sctp.h of the macro:
    >
    > ...
    > #define SCTP_CHUNKMAP_COPY(destmap, srcmap) \
    > do { \
    > int i; \
    > for (i = 0; i < ELEMCOUNT(chunkmap); i++) \
    ^^^^^^^^
    srcmap??

    > destmap[i] = srcmap[i]; \
    > } while (0)
    > ...
    >

    whoops, i take it back ... isn't this just a flat-out error, where the
    macro should be written with the correction above?

    rday

    --
    ========================================================================
    Robert P. J. Day
    Linux Consulting, Training and Annoying Kernel Pedantry
    Waterloo, Ontario, CANADA

    http://crashcourse.ca
    ========================================================================
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-10-01 11:59    [W:0.026 / U:1.424 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site