aboutsummaryrefslogtreecommitdiffstats
path: root/src/show.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/show.c')
-rw-r--r--src/show.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/show.c b/src/show.c
index 443bd24..0047e97 100644
--- a/src/show.c
+++ b/src/show.c
@@ -6,7 +6,7 @@ void
show (DISK * d)
{
MBR *m;
- GPT_header *h;
+ GPT_headers h;
GPT_entry *e;
uint8_t buf[512];
@@ -15,12 +15,9 @@ show (DISK * d)
m = (MBR *) buf;
mbr_show (m);
- disk_read (d, buf, 1, 1);
- h = (GPT_header *) buf;
- header_show (d, h);
+ h=headers_get(d);
+ header_show (d, &h.header);
- disk_read (d, buf, disk_lbas (d) - 1, 1);
- h = (GPT_header *) buf;
- header_show (d, h);
+ header_show (d, &h.alt_header);
}