diff options
Diffstat (limited to 'src/show.c')
-rw-r--r-- | src/show.c | 35 |
1 files changed, 15 insertions, 20 deletions
@@ -2,30 +2,25 @@ -void show(DISK *d) +void +show (DISK * d) { -MBR *m; -GPT_header *h; -GPT_entry *e; + MBR *m; + GPT_header *h; + GPT_entry *e; -uint8_t buf[512]; + uint8_t buf[512]; -disk_read(d,buf,0,1); -m=(MBR *)buf; -mbr_show(m); + disk_read (d, buf, 0, 1); + m = (MBR *) buf; + mbr_show (m); -disk_read(d,buf,1,1); -h=(GPT_header *)buf; -header_show(d,h); + disk_read (d, buf, 1, 1); + h = (GPT_header *) buf; + header_show (d, h); -disk_read(d,buf,disk_lbas(d)-1,1); -h=(GPT_header *)buf; -header_show(d,h); + disk_read (d, buf, disk_lbas (d) - 1, 1); + h = (GPT_header *) buf; + header_show (d, h); } - - - - - - |