fdisk_aix: fix aliasing warning, comment out unused global variables

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2019-10-04 17:16:15 +02:00
parent d8e4ce0503
commit 27f0e8a275
2 changed files with 23 additions and 23 deletions

View File

@@ -161,7 +161,7 @@ check_gpt_label(void)
if (!valid_part_table_flag(MBRbuffer)
|| first->sys_ind != LEGACY_GPT_TYPE
) {
current_label_type = 0;
current_label_type = LABEL_DOS;
return 0;
}
@@ -171,7 +171,7 @@ check_gpt_label(void)
gpt_hdr = (void *)pe.sectorbuffer;
if (gpt_hdr->magic != SWAP_LE64(GPT_MAGIC)) {
current_label_type = 0;
current_label_type = LABEL_DOS;
return 0;
}
@@ -194,7 +194,7 @@ check_gpt_label(void)
|| SWAP_LE32(gpt_hdr->hdr_size) > sector_size
) {
puts("\nwarning: unable to parse GPT disklabel\n");
current_label_type = 0;
current_label_type = LABEL_DOS;
return 0;
}