diff options
author | Renato Westphal <renatowestphal@gmail.com> | 2012-03-23 16:27:40 -0300 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2012-03-23 20:51:28 +0100 |
commit | fe67e668881b8b8d71b1570575c913cd287fafcf (patch) | |
tree | ce48b0028e879d4e6f938bb9dd583ed9f679fa96 /lib/sockopt.h | |
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>
Diffstat (limited to 'lib/sockopt.h')
0 files changed, 0 insertions, 0 deletions