diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-19 20:32:02 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-19 20:32:02 +0000 |
commit | 28703015ab71784f40bc97f720ed900e26bd03ca (patch) | |
tree | ff0f9a21d1822c9a2f35819db4156d9555f56116 /util-linux/fdisk_sun.c | |
parent | f58906b6463436f6a19f72d43c3ab4ba69d79104 (diff) | |
download | busybox-w32-28703015ab71784f40bc97f720ed900e26bd03ca.tar.gz busybox-w32-28703015ab71784f40bc97f720ed900e26bd03ca.tar.bz2 busybox-w32-28703015ab71784f40bc97f720ed900e26bd03ca.zip |
u_short, ulong exterminated
fdiskXXX: add a bit of sanity (not enough by far)
Diffstat (limited to 'util-linux/fdisk_sun.c')
-rw-r--r-- | util-linux/fdisk_sun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/fdisk_sun.c b/util-linux/fdisk_sun.c index 1e8f2e525..af85fb2c4 100644 --- a/util-linux/fdisk_sun.c +++ b/util-linux/fdisk_sun.c | |||
@@ -2,8 +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) : (uint16_t)(x)) | 5 | #define SUN_SSWAP16(x) (sun_other_endian ? fdisk_swap16(x) : (uint16_t)(x)) |
6 | #define SUN_SSWAP32(x) (sun_other_endian ? __swap32(x) : (uint32_t)(x)) | 6 | #define SUN_SSWAP32(x) (sun_other_endian ? fdisk_swap32(x) : (uint32_t)(x)) |
7 | 7 | ||
8 | /* Copied from linux/major.h */ | 8 | /* Copied from linux/major.h */ |
9 | #define FLOPPY_MAJOR 2 | 9 | #define FLOPPY_MAJOR 2 |