diff options
author | root <root> | 2007-09-09 22:29:50 +0000 |
---|---|---|
committer | root <root> | 2007-09-09 22:29:50 +0000 |
commit | 61c1751407b35ed4fe98d5e1e39608c7940349d2 (patch) | |
tree | 74b57d028e49c01c0a9404928d34b58d2a687f17 /src/show.c | |
parent | a501062f338339d1dbafebc55841cbdc570a27b6 (diff) | |
download | gpt-61c1751407b35ed4fe98d5e1e39608c7940349d2.tar.gz gpt-61c1751407b35ed4fe98d5e1e39608c7940349d2.tar.bz2 gpt-61c1751407b35ed4fe98d5e1e39608c7940349d2.zip |
*** empty log message ***
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); } - - - - - - |