Re: (0 == foo), rather than (foo == 0)

From: Richard B. Johnson
Date: Thu Mar 11 2004 - 10:29:57 EST

On Thu, 11 Mar 2004 Valdis.Kletnieks@xxxxxx wrote:

> On Wed, 10 Mar 2004 13:33:53 EST, "Richard B. Johnson" said:
> > People who develop kernel code know the difference between
> > '==' and '=' and are never confused my them. If you make
> Remember a few months ago when a lot of very clever people looked at
> a line of code that said 'if (yadda yadda && (uid = 0))' that had been
> inserted into the CVS tree, and it took a while for some of the very clever
> people to notice the equally clever hack?

No, and if you bothered to look at any code in the kernel, you'd
note that uid and friends are always associated with some little
pointy thingys. So, it wouldn't have been coded anything like that,

Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at