diff options
author | Denys Vlasenko | 2019-10-04 17:16:15 +0200 |
---|---|---|
committer | Denys Vlasenko | 2019-10-04 17:16:15 +0200 |
commit | 27f0e8a27584df50736398c26491c450b12fd00d (patch) | |
tree | e182ce487c08ee390fe917d0a992a0c96cf5a9c3 /util-linux/fdisk_gpt.c | |
parent | d8e4ce05039a89c2e0b41f008d74a83db45f2287 (diff) | |
download | busybox-27f0e8a27584df50736398c26491c450b12fd00d.zip busybox-27f0e8a27584df50736398c26491c450b12fd00d.tar.gz |
fdisk_aix: fix aliasing warning, comment out unused global variables
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/fdisk_gpt.c')
-rw-r--r-- | util-linux/fdisk_gpt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/fdisk_gpt.c b/util-linux/fdisk_gpt.c index dbe889f..e884e3d 100644 --- a/util-linux/fdisk_gpt.c +++ b/util-linux/fdisk_gpt.c @@ -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; } |