aboutsummaryrefslogtreecommitdiffstats
path: root/src/show.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/show.c')
-rw-r--r--src/show.c35
1 files changed, 15 insertions, 20 deletions
diff --git a/src/show.c b/src/show.c
index 6297c85..443bd24 100644
--- a/src/show.c
+++ b/src/show.c
@@ -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);
}
-
-
-
-
-
-