summaryrefslogtreecommitdiff
path: root/babeld
diff options
context:
space:
mode:
authorRenato Westphal <renatowestphal@gmail.com>2012-03-23 16:27:40 -0300
committerDavid Lamparter <equinox@diac24.net>2012-03-23 20:51:28 +0100
commitfe67e668881b8b8d71b1570575c913cd287fafcf (patch)
treece48b0028e879d4e6f938bb9dd583ed9f679fa96 /babeld
parentaee567450eaf32877d00f47c4cc5d05c5fb85a51 (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>
Diffstat (limited to 'babeld')
0 files changed, 0 insertions, 0 deletions