From 61c1751407b35ed4fe98d5e1e39608c7940349d2 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 9 Sep 2007 22:29:50 +0000 Subject: *** empty log message *** --- src/show.c | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) (limited to 'src/show.c') 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); } - - - - - - -- cgit v1.2.3