> gcc is correct. "&array" and "array" are different. While they represent
> the same address, the types are not compatible. Eg. for "int array[5]"
> the type of "array" is "int [5]" (decaying to "int *" in most contexts),
> but the type of "&array" is "int (*)[5]" (pointer to array of 5 ints).
Ah, of course. Thankyou the clue contribution. I should have thought
harder in the first place.
(To the audience) Patch, of course, is still correct..
Rusty.
-- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - 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/