On Sat, 2010-10-23, Ian Collins wrote:
> On 10/23/10 01:50 PM, KevinSimonson wrote:
....
>> struct SwapEndianess {};
....
> There nothing wrong with the code, the compiler is probably trying to
> tell you [...]
Well, there are at least two problems:
- unconditional swapping is a hint that there may be a design flaw
in the code, or in the network protocol. I wouldn't be surprised if
they're also doing non-portable casts (like taking an uint8_t* and casting
it to uint32_t*).
- they spell 'endianness' incorrectly
/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .