svn commit: trunk/busybox/include
landley at busybox.net
landley at busybox.net
Tue May 30 06:28:05 UTC 2006
Author: landley
Date: 2006-05-29 23:28:03 -0700 (Mon, 29 May 2006)
New Revision: 15226
Log:
Put parentheses around some of the SWAP() macros, as pointed out by Peter
Kjellerstedt.
Modified:
trunk/busybox/include/platform.h
Changeset:
Modified: trunk/busybox/include/platform.h
===================================================================
--- trunk/busybox/include/platform.h 2006-05-29 20:56:27 UTC (rev 15225)
+++ trunk/busybox/include/platform.h 2006-05-30 06:28:03 UTC (rev 15226)
@@ -114,9 +114,9 @@
#endif
#if BB_BIG_ENDIAN
-#define SWAP_BE16(x) x
-#define SWAP_BE32(x) x
-#define SWAP_BE64(x) x
+#define SWAP_BE16(x) (x)
+#define SWAP_BE32(x) (x)
+#define SWAP_BE64(x) (x)
#define SWAP_LE16(x) bswap_16(x)
#define SWAP_LE32(x) bswap_32(x)
#define SWAP_LE64(x) bswap_64(x)
@@ -124,9 +124,9 @@
#define SWAP_BE16(x) bswap_16(x)
#define SWAP_BE32(x) bswap_32(x)
#define SWAP_BE64(x) bswap_64(x)
-#define SWAP_LE16(x) x
-#define SWAP_LE32(x) x
-#define SWAP_LE64(x) x
+#define SWAP_LE16(x) (x)
+#define SWAP_LE32(x) (x)
+#define SWAP_LE64(x) (x)
#endif
/* ---- Networking ------------------------------------------ */
More information about the busybox-cvs
mailing list