aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdisk.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-05-05 16:54:40 +0000
committerRob Landley <rob@landley.net>2006-05-05 16:54:40 +0000
commit2c39eee805e4bc875eab737e529feb0c4c91f50e (patch)
treea91900db1e5342000f5de4e1d41be802663ee4bb /util-linux/fdisk.c
parent39cf645ce0773e8fc5babb69550d8815064c76f8 (diff)
downloadbusybox-w32-2c39eee805e4bc875eab737e529feb0c4c91f50e.tar.gz
busybox-w32-2c39eee805e4bc875eab737e529feb0c4c91f50e.tar.bz2
busybox-w32-2c39eee805e4bc875eab737e529feb0c4c91f50e.zip
Migrate endianness macros.
Diffstat (limited to 'util-linux/fdisk.c')
-rw-r--r--util-linux/fdisk.c8
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)
2343 "until you decide to write them. After that, of course, the previous\n" 2343 "until you decide to write them. After that, of course, the previous\n"
2344 "content will be unrecoverably lost.\n\n")); 2344 "content will be unrecoverably lost.\n\n"));
2345 2345
2346 sgi_other_endian = (BYTE_ORDER == LITTLE_ENDIAN); 2346 sgi_other_endian = (BB_LITTLE_ENDIAN);
2347 res = ioctl(fd, BLKGETSIZE, &longsectors); 2347 res = ioctl(fd, BLKGETSIZE, &longsectors);
2348 if (!ioctl(fd, HDIO_GETGEO, &geometry)) { 2348 if (!ioctl(fd, HDIO_GETGEO, &geometry)) {
2349 heads = geometry.heads; 2349 heads = geometry.heads;
@@ -2681,11 +2681,7 @@ create_sunlabel(void)
2681 _("Building a new sun disklabel. Changes will remain in memory only,\n" 2681 _("Building a new sun disklabel. Changes will remain in memory only,\n"
2682 "until you decide to write them. After that, of course, the previous\n" 2682 "until you decide to write them. After that, of course, the previous\n"
2683 "content won't be recoverable.\n\n")); 2683 "content won't be recoverable.\n\n"));
2684#if BYTE_ORDER == LITTLE_ENDIAN 2684 sun_other_endian = BB_LITTLE_ENDIAN;
2685 sun_other_endian = 1;
2686#else
2687 sun_other_endian = 0;
2688#endif
2689 memset(MBRbuffer, 0, sizeof(MBRbuffer)); 2685 memset(MBRbuffer, 0, sizeof(MBRbuffer));
2690 sunlabel->magic = SUN_SSWAP16(SUN_LABEL_MAGIC); 2686 sunlabel->magic = SUN_SSWAP16(SUN_LABEL_MAGIC);
2691 if (!floppy) { 2687 if (!floppy) {