aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdisk_gpt.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-10-04 17:16:15 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2019-10-04 17:16:15 +0200
commit27f0e8a27584df50736398c26491c450b12fd00d (patch)
treee182ce487c08ee390fe917d0a992a0c96cf5a9c3 /util-linux/fdisk_gpt.c
parentd8e4ce05039a89c2e0b41f008d74a83db45f2287 (diff)
downloadbusybox-w32-27f0e8a27584df50736398c26491c450b12fd00d.tar.gz
busybox-w32-27f0e8a27584df50736398c26491c450b12fd00d.tar.bz2
busybox-w32-27f0e8a27584df50736398c26491c450b12fd00d.zip
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/fdisk_gpt.c b/util-linux/fdisk_gpt.c
index dbe889f7c..e884e3dc1 100644
--- a/util-linux/fdisk_gpt.c
+++ b/util-linux/fdisk_gpt.c
@@ -161,7 +161,7 @@ check_gpt_label(void)
161 if (!valid_part_table_flag(MBRbuffer) 161 if (!valid_part_table_flag(MBRbuffer)
162 || first->sys_ind != LEGACY_GPT_TYPE 162 || first->sys_ind != LEGACY_GPT_TYPE
163 ) { 163 ) {
164 current_label_type = 0; 164 current_label_type = LABEL_DOS;
165 return 0; 165 return 0;
166 } 166 }
167 167
@@ -171,7 +171,7 @@ check_gpt_label(void)
171 gpt_hdr = (void *)pe.sectorbuffer; 171 gpt_hdr = (void *)pe.sectorbuffer;
172 172
173 if (gpt_hdr->magic != SWAP_LE64(GPT_MAGIC)) { 173 if (gpt_hdr->magic != SWAP_LE64(GPT_MAGIC)) {
174 current_label_type = 0; 174 current_label_type = LABEL_DOS;
175 return 0; 175 return 0;
176 } 176 }
177 177
@@ -194,7 +194,7 @@ check_gpt_label(void)
194 || SWAP_LE32(gpt_hdr->hdr_size) > sector_size 194 || SWAP_LE32(gpt_hdr->hdr_size) > sector_size
195 ) { 195 ) {
196 puts("\nwarning: unable to parse GPT disklabel\n"); 196 puts("\nwarning: unable to parse GPT disklabel\n");
197 current_label_type = 0; 197 current_label_type = LABEL_DOS;
198 return 0; 198 return 0;
199 } 199 }
200 200