aboutsummaryrefslogtreecommitdiffstats
path: root/src/fixup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fixup.c')
-rw-r--r--src/fixup.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fixup.c b/src/fixup.c
index af7b6d6..8b3116d 100644
--- a/src/fixup.c
+++ b/src/fixup.c
@@ -3,15 +3,15 @@
int
-fixup (DISK * d)
+fixup (DISK * d)
{
GPT_headers h;
- int i;
+ int i;
h = headers_get_one (d);
-
+
for (i = 0; i < h.header.n_partition_entries; ++i)
{
@@ -20,13 +20,13 @@ fixup (DISK * d)
GPT_entry e = entry_read (d, &h.header, i);
- entry_write (d, &h.header, i, &e);
+ entry_write (d, &h.header, i, &e);
- entry_write (d, &h.alt_header, i, &e);
+ entry_write (d, &h.alt_header, i, &e);
}
- header_redo_ent_crc (d, &h.header);
+ header_redo_ent_crc (d, &h.header);
header_write (d, &h.header);
header_redo_ent_crc (d, &h.alt_header);
@@ -34,5 +34,5 @@ fixup (DISK * d)
- return 0;
+ return 0;
}