diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-31 22:24:33 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-31 22:24:33 +0000 |
commit | bad6879a8f3bfc48e7b874a6de6d0b4a08645642 (patch) | |
tree | 4716a4ca09faa9eab9b32650532fbb42bc5d0027 | |
parent | 0a79818ed34678951db7dfe49bd1ff8c2c14568f (diff) | |
download | busybox-w32-bad6879a8f3bfc48e7b874a6de6d0b4a08645642.tar.gz busybox-w32-bad6879a8f3bfc48e7b874a6de6d0b4a08645642.tar.bz2 busybox-w32-bad6879a8f3bfc48e7b874a6de6d0b4a08645642.zip |
Use BB endianness macro.
git-svn-id: svn://busybox.net/trunk/busybox@15253 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | networking/udhcp/options.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c index d394b4c39..0657b3239 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) | |||
158 | option[OPT_CODE] = code; | 158 | option[OPT_CODE] = code; |
159 | len = option_lengths[dh->flags & TYPE_MASK]; | 159 | len = option_lengths[dh->flags & TYPE_MASK]; |
160 | option[OPT_LEN] = len; | 160 | option[OPT_LEN] = len; |
161 | if (__BYTE_ORDER == __BIG_ENDIAN) | 161 | if (BB_BIG_ENDIAN) data <<= 8 * (4 - len); |
162 | data <<= 8 * (4 - len); | ||
163 | /* This memcpy is for broken processors which can't | 162 | /* This memcpy is for broken processors which can't |
164 | * handle a simple unaligned 32-bit assignment */ | 163 | * handle a simple unaligned 32-bit assignment */ |
165 | memcpy(&option[OPT_DATA], &data, 4); | 164 | memcpy(&option[OPT_DATA], &data, 4); |