I think the "ntohl()" hides it. It loads a 64-bit value, but since x86-64
is little-endian, the low 32 bits are correct. The htonl() will then strip
the high bits and make it all be big-endian.
And while I actually run a 64-bit big-endian machine myself (G5 ppc64), my
user space is all 32-bit by default, so it never showed up on linux-ppc64
either.
Anyway, the correct type to use is "uint32_t" in this case. That's what
htonl() takes.
Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html