summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.c
diff options
context:
space:
mode:
authorKarel Zak2013-01-18 14:43:00 +0100
committerKarel Zak2013-03-11 12:47:30 +0100
commitd6ab93f18a53ec1747a33a74da027ae9fd63c200 (patch)
tree4bf76c24036072573c21b51faa401419698d5387 /fdisks/fdisk.c
parentfdisk: (sun) remove global variable 'partitions' (diff)
downloadkernel-qcow2-util-linux-d6ab93f18a53ec1747a33a74da027ae9fd63c200.tar.gz
kernel-qcow2-util-linux-d6ab93f18a53ec1747a33a74da027ae9fd63c200.tar.xz
kernel-qcow2-util-linux-d6ab93f18a53ec1747a33a74da027ae9fd63c200.zip
fdisk: (sun) remove nasty sunlabel macro
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.c')
-rw-r--r--fdisks/fdisk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c
index 2b8538d90..b34d0f8da 100644
--- a/fdisks/fdisk.c
+++ b/fdisks/fdisk.c
@@ -588,8 +588,7 @@ get_partition_dflt(struct fdisk_context *cxt, int warn, int max, int dflt) {
if ((!fdisk_is_disklabel(cxt, SUN) &&
!fdisk_is_disklabel(cxt, SGI) && !pe->part_table->sys_ind)
|| (fdisk_is_disklabel(cxt, SUN) &&
- (!sunlabel->partitions[i].num_sectors ||
- !sunlabel->part_tags[i].tag))
+ sun_is_empty_type(cxt, i))
|| (fdisk_is_disklabel(cxt, SGI) &&
(!sgi_get_num_sectors(cxt, i))))
fprintf(stderr,