Re: [BUG] Bad #define, nonportable C, missing {}

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Nov 26 2001 - 15:28:03 EST


> > MODINC(x,y) (x = (x % y) + 1)
>
> drivers/message/i2o/i2o_config.c:#define MODINC(x,y) (x = x++ % y)
>
> Alan, can you clarify what this macro is doing?
> What about making it less confusing?

Nothing to do with me 8). I didnt write that bit of the i2o code. I agree
its both confusing and buggy. Send a fix ?
-
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/



This archive was generated by hypermail 2b29 : Fri Nov 30 2001 - 21:00:23 EST