summaryrefslogtreecommitdiff
path: root/util-linux/fdisk_osf.c
diff options
context:
space:
mode:
authorDenys Vlasenko2009-11-07 01:31:14 +0100
committerDenys Vlasenko2009-11-07 01:31:14 +0100
commit245a4f84be09505fcac7b2afab00106d65c815df (patch)
tree6d0685158588e69744ec2539d13e2526117da366 /util-linux/fdisk_osf.c
parent0d8c0b810e02de887abc3a0fbbf6e7d06ace8a85 (diff)
downloadbusybox-245a4f84be09505fcac7b2afab00106d65c815df.zip
busybox-245a4f84be09505fcac7b2afab00106d65c815df.tar.gz
big endian warning fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/fdisk_osf.c')
-rw-r--r--util-linux/fdisk_osf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c
index 09a68da..b89a2b2 100644
--- a/util-linux/fdisk_osf.c
+++ b/util-linux/fdisk_osf.c
@@ -615,7 +615,7 @@ xbsd_create_disklabel(void)
while (1) {
c = read_nonempty("Do you want to create a disklabel? (y/n) ");
- if (c == 'y' || c == 'Y') {
+ if ((c|0x20) == 'y') {
if (xbsd_initlabel(
#if defined(__alpha__) || defined(__powerpc__) || defined(__hppa__) || \
defined(__s390__) || defined(__s390x__)
@@ -629,7 +629,7 @@ xbsd_create_disklabel(void)
}
return 0;
}
- if (c == 'n')
+ if ((c|0x20) == 'n')
return 0;
}
}
@@ -964,6 +964,7 @@ xbsd_writelabel(struct partition *p)
#if !defined(__alpha__) && !defined(__powerpc__) && !defined(__hppa__)
sector = get_start_sect(p) + BSD_LABELSECTOR;
#else
+ (void)p; /* silence warning */
sector = BSD_LABELSECTOR;
#endif