diff options
Diffstat (limited to 'src/show.c')
-rw-r--r-- | src/show.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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); } |