Yes, I'm almost positive that the second version is always correct due to
the C language rules about integer promotions.
However, I also suspect that the first version really _should_ work, and
that it really is a problem in gcc or the varargs header files that makes
it not work.
Alternatively, I'd really like to know whether maybe the C standard really
says that you _have_ to use the second form. It's possible it does.
Basically, my worry is not so much about getting it to work, I just want
to know that it is _guaranteed_ to work and that we won't have to look
into this again a few years from now.
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/