diff options
author | Rob Landley <rob@landley.net> | 2006-05-05 16:54:40 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-05 16:54:40 +0000 |
commit | 2c39eee805e4bc875eab737e529feb0c4c91f50e (patch) | |
tree | a91900db1e5342000f5de4e1d41be802663ee4bb /util-linux | |
parent | 39cf645ce0773e8fc5babb69550d8815064c76f8 (diff) | |
download | busybox-2c39eee805e4bc875eab737e529feb0c4c91f50e.tar.gz |
Migrate endianness macros.
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/fdisk.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 9701c467b..2042951d9 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c @@ -2343,7 +2343,7 @@ create_sgilabel(void) "until you decide to write them. After that, of course, the previous\n" "content will be unrecoverably lost.\n\n")); - sgi_other_endian = (BYTE_ORDER == LITTLE_ENDIAN); + sgi_other_endian = (BB_LITTLE_ENDIAN); res = ioctl(fd, BLKGETSIZE, &longsectors); if (!ioctl(fd, HDIO_GETGEO, &geometry)) { heads = geometry.heads; @@ -2681,11 +2681,7 @@ create_sunlabel(void) _("Building a new sun disklabel. Changes will remain in memory only,\n" "until you decide to write them. After that, of course, the previous\n" "content won't be recoverable.\n\n")); -#if BYTE_ORDER == LITTLE_ENDIAN - sun_other_endian = 1; -#else - sun_other_endian = 0; -#endif + sun_other_endian = BB_LITTLE_ENDIAN; memset(MBRbuffer, 0, sizeof(MBRbuffer)); sunlabel->magic = SUN_SSWAP16(SUN_LABEL_MAGIC); if (!floppy) { |