summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley2006-05-31 22:24:33 +0000
committerRob Landley2006-05-31 22:24:33 +0000
commitc8b360ebb75ff41a5263828a591e7c0932ea944e (patch)
tree4716a4ca09faa9eab9b32650532fbb42bc5d0027
parentb623a542dff149151c892344e2343a9e245275de (diff)
downloadbusybox-c8b360ebb75ff41a5263828a591e7c0932ea944e.zip
busybox-c8b360ebb75ff41a5263828a591e7c0932ea944e.tar.gz
Use BB endianness macro.
-rw-r--r--networking/udhcp/options.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c
index d394b4c..0657b32 100644
--- a/networking/udhcp/options.c
+++ b/networking/udhcp/options.c
@@ -158,8 +158,7 @@ int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data)
option[OPT_CODE] = code;
len = option_lengths[dh->flags & TYPE_MASK];
option[OPT_LEN] = len;
- if (__BYTE_ORDER == __BIG_ENDIAN)
- data <<= 8 * (4 - len);
+ if (BB_BIG_ENDIAN) data <<= 8 * (4 - len);
/* This memcpy is for broken processors which can't
* handle a simple unaligned 32-bit assignment */
memcpy(&option[OPT_DATA], &data, 4);