svn commit: trunk/busybox/networking/udhcp

landley at busybox.net landley at busybox.net
Wed May 31 22:24:35 UTC 2006


Author: landley
Date: 2006-05-31 15:24:33 -0700 (Wed, 31 May 2006)
New Revision: 15253

Log:
Use BB endianness macro.


Modified:
   trunk/busybox/networking/udhcp/options.c


Changeset:
Modified: trunk/busybox/networking/udhcp/options.c
===================================================================
--- trunk/busybox/networking/udhcp/options.c	2006-05-31 22:09:03 UTC (rev 15252)
+++ trunk/busybox/networking/udhcp/options.c	2006-05-31 22:24:33 UTC (rev 15253)
@@ -158,8 +158,7 @@
 			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);




More information about the busybox-cvs mailing list