Skip to content

Commit

Permalink
minor change'
Browse files Browse the repository at this point in the history
Signed-off-by: Burnleydev1 <[email protected]>
  • Loading branch information
Burnleydev1 committed Mar 16, 2023
1 parent c11ba96 commit 645a4fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mbr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ type t = {
disk_signature : int32;
partitions : Partition.t list;
}

let make ?disk_signature partitions =

(if List.length partitions <= 4 then Ok () else Error "Too many partitions")
>>= fun () ->
let num_active =
Expand Down Expand Up @@ -197,15 +197,15 @@ let make ?disk_signature partitions =
let seconds = 0 in
let minutes = 0 in
let hours = 0 in

Ok
{
bootstrap_code;
original_physical_drive;
seconds;
minutes;
hours;
disk_signature= (match disk_signature with Some s -> s | None -> 0l);
disk_signature = (match disk_signature with Some s -> s | None -> 0l);
partitions;
}

Expand Down

0 comments on commit 645a4fd

Please sign in to comment.