fdisk_aix: fix aliasing warning, comment out unused global variables
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user