Re: [PATCH] Re: [ipchains] logging tcp/udp port numbers

Linus Torvalds (torvalds@transmeta.com)
Wed, 18 Nov 1998 17:10:16 -0800 (PST)


On Wed, 18 Nov 1998, Michael Meissner wrote:
>
> ISO C does not allow using va_arg with short types (char, short, float), so the
> ppc and sparc aren't broken, the code is wrong. Because the ppc and sparc are
> both big endian machines, what you are seeing is the upper 16 bits of the
> argument.

Ok, that's all I wanted to know - what the right answer was. The code has
been changed to do

(short) va_arg(args, int);

instead.

Linus

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