> > bswap32 == swap32 for OpenBSD. > > > > I think it would be better if you used swap32() here. > > No htole32() is better in this context. Linux and FreeBSD get away > with using "swap" functions because this is in an #if BYTE_ORDER == > BIG_ENDIAN block, but CPU_TO_LE32() is supposed to translate host > (cpu) byte order into little endian. The code for Darwin gets this > right.
That's completely right.
