aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-04-26 19:32:01 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2011-04-26 19:32:01 +0200
commitb7291d4a98bafb4ac3f1a2ff7df37037f91ad04e (patch)
treedc5a5998bf99cb0302f11fa6d3cec61d4dc270f0
parentd7d20a78c72237f85d8508c93aa411529d0ac17a (diff)
downloadsyslinux-b7291d4a98bafb4ac3f1a2ff7df37037f91ad04e.tar.gz
syslinux-b7291d4a98bafb4ac3f1a2ff7df37037f91ad04e.tar.xz
syslinux-b7291d4a98bafb4ac3f1a2ff7df37037f91ad04e.zip
Revert "hdt: remove set-but-unused variable"
This reverts commit 842d7e35ccd8cd89105faf0266497e838d96c8b3. In fact, you found a real bug. I missed at dumping some information. So I revert this commit and then add the missing code.
-rw-r--r--com32/hdt/hdt-dump-disks.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/hdt/hdt-dump-disks.c b/com32/hdt/hdt-dump-disks.c
index dcbcaa9e..ed2aea36 100644
--- a/com32/hdt/hdt-dump-disks.c
+++ b/com32/hdt/hdt-dump-disks.c
@@ -42,6 +42,7 @@ static void show_partition_information(struct driveinfo *drive_info,
char ostype[64]={0};
char *parttype;
unsigned int start, end;
+ bool bootable = false;
int i = nb_partitions_seen;
start = partition_offset;
@@ -52,6 +53,8 @@ static void show_partition_information(struct driveinfo *drive_info,
get_label(ptab->ostype, &parttype);
get_bootloader_string(drive_info, ptab, bootloader_name, 9);
+ if (ptab->active_flag == 0x80)
+ bootable=true;
snprintf(ostype,sizeof(ostype),"%02X",ptab->ostype);