diff options
| author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-30 06:28:03 +0000 |
|---|---|---|
| committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-30 06:28:03 +0000 |
| commit | b888ac49481b7c323f1107a56211b17fdf994bbd (patch) | |
| tree | 18c8c07b5a3ca3a189543475bba4cb45f644f34b /include | |
| parent | 6686c197734ee2478a085a8b85c421fb4aac6520 (diff) | |
| download | busybox-w32-b888ac49481b7c323f1107a56211b17fdf994bbd.tar.gz busybox-w32-b888ac49481b7c323f1107a56211b17fdf994bbd.tar.bz2 busybox-w32-b888ac49481b7c323f1107a56211b17fdf994bbd.zip | |
Put parentheses around some of the SWAP() macros, as pointed out by Peter
Kjellerstedt.
git-svn-id: svn://busybox.net/trunk/busybox@15226 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
| -rw-r--r-- | include/platform.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/platform.h b/include/platform.h index 10c1d7d86..1847bc223 100644 --- a/include/platform.h +++ b/include/platform.h | |||
| @@ -114,9 +114,9 @@ | |||
| 114 | #endif | 114 | #endif |
| 115 | 115 | ||
| 116 | #if BB_BIG_ENDIAN | 116 | #if BB_BIG_ENDIAN |
| 117 | #define SWAP_BE16(x) x | 117 | #define SWAP_BE16(x) (x) |
| 118 | #define SWAP_BE32(x) x | 118 | #define SWAP_BE32(x) (x) |
| 119 | #define SWAP_BE64(x) x | 119 | #define SWAP_BE64(x) (x) |
| 120 | #define SWAP_LE16(x) bswap_16(x) | 120 | #define SWAP_LE16(x) bswap_16(x) |
| 121 | #define SWAP_LE32(x) bswap_32(x) | 121 | #define SWAP_LE32(x) bswap_32(x) |
| 122 | #define SWAP_LE64(x) bswap_64(x) | 122 | #define SWAP_LE64(x) bswap_64(x) |
| @@ -124,9 +124,9 @@ | |||
| 124 | #define SWAP_BE16(x) bswap_16(x) | 124 | #define SWAP_BE16(x) bswap_16(x) |
| 125 | #define SWAP_BE32(x) bswap_32(x) | 125 | #define SWAP_BE32(x) bswap_32(x) |
| 126 | #define SWAP_BE64(x) bswap_64(x) | 126 | #define SWAP_BE64(x) bswap_64(x) |
| 127 | #define SWAP_LE16(x) x | 127 | #define SWAP_LE16(x) (x) |
| 128 | #define SWAP_LE32(x) x | 128 | #define SWAP_LE32(x) (x) |
| 129 | #define SWAP_LE64(x) x | 129 | #define SWAP_LE64(x) (x) |
| 130 | #endif | 130 | #endif |
| 131 | 131 | ||
| 132 | /* ---- Networking ------------------------------------------ */ | 132 | /* ---- Networking ------------------------------------------ */ |
