diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-27 16:48:17 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-27 16:48:17 +0000 |
commit | 09d6cecd11b71856abab9bb68e74f0dd87a425fa (patch) | |
tree | eb2f62d0756ae38bde76d61c15b9f3ddd3c41941 /util-linux/fdisk_sun.c | |
parent | 16546091e607023891d01b18b23a08a8fdde528d (diff) | |
download | busybox-w32-09d6cecd11b71856abab9bb68e74f0dd87a425fa.tar.gz busybox-w32-09d6cecd11b71856abab9bb68e74f0dd87a425fa.tar.bz2 busybox-w32-09d6cecd11b71856abab9bb68e74f0dd87a425fa.zip |
byteswap ops had extra mask ops - removed
git-svn-id: svn://busybox.net/trunk/busybox@16689 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r-- | util-linux/fdisk_sun.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/util-linux/fdisk_sun.c b/util-linux/fdisk_sun.c index 6973fbf30..1e8f2e525 100644 --- a/util-linux/fdisk_sun.c +++ b/util-linux/fdisk_sun.c | |||
@@ -2,10 +2,8 @@ | |||
2 | 2 | ||
3 | #define SUN_LABEL_MAGIC 0xDABE | 3 | #define SUN_LABEL_MAGIC 0xDABE |
4 | #define SUN_LABEL_MAGIC_SWAPPED 0xBEDA | 4 | #define SUN_LABEL_MAGIC_SWAPPED 0xBEDA |
5 | #define SUN_SSWAP16(x) (sun_other_endian ? __swap16(x) \ | 5 | #define SUN_SSWAP16(x) (sun_other_endian ? __swap16(x) : (uint16_t)(x)) |
6 | : (uint16_t)(x)) | 6 | #define SUN_SSWAP32(x) (sun_other_endian ? __swap32(x) : (uint32_t)(x)) |
7 | #define SUN_SSWAP32(x) (sun_other_endian ? __swap32(x) \ | ||
8 | : (uint32_t)(x)) | ||
9 | 7 | ||
10 | /* Copied from linux/major.h */ | 8 | /* Copied from linux/major.h */ |
11 | #define FLOPPY_MAJOR 2 | 9 | #define FLOPPY_MAJOR 2 |