diff options
author | Karel Zak | 2013-01-18 14:43:00 +0100 |
---|---|---|
committer | Karel Zak | 2013-03-11 12:47:30 +0100 |
commit | d6ab93f18a53ec1747a33a74da027ae9fd63c200 (patch) | |
tree | 4bf76c24036072573c21b51faa401419698d5387 /fdisks/fdisk.c | |
parent | fdisk: (sun) remove global variable 'partitions' (diff) | |
download | kernel-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.c | 3 |
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, |