commit | fe67e668881b8b8d71b1570575c913cd287fafcf | [log] [tgz] |
---|---|---|
author | Renato Westphal <renatowestphal@gmail.com> | Fri Mar 23 16:27:40 2012 -0300 |
committer | David Lamparter <equinox@diac24.net> | Fri Mar 23 20:51:28 2012 +0100 |
tree | ce48b0028e879d4e6f938bb9dd583ed9f679fa96 | |
parent | aee567450eaf32877d00f47c4cc5d05c5fb85a51 [diff] |
lib: fix endianness bug in prefix.c While defining two "maskbytes" arrays for the respective endiannesses, the code was unconditionally using one that only worked on little endian systems. Use preprocessor macros to avoid the somewhat expensive htonl/ntohl macros. From: Renato Westphal <renatowestphal@gmail.com> Signed-off-by: David Lamparter <equinox@diac24.net>