diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-06-19 20:33:27 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2023-06-19 20:33:27 +0200 |
| commit | ef9d6331fc9067f7ba47eccee204fa2f0c5d0a18 (patch) | |
| tree | d6fb2a3a0722bea29d94c1511e57f1a809a01c54 /src/link/MachO/CodeSignature.zig | |
| parent | 8087c134dbeaa2925948597883d6a401f251a716 (diff) | |
| download | zig-ef9d6331fc9067f7ba47eccee204fa2f0c5d0a18.tar.gz zig-ef9d6331fc9067f7ba47eccee204fa2f0c5d0a18.zip | |
macho: clean up hasher interface
Diffstat (limited to 'src/link/MachO/CodeSignature.zig')
| -rw-r--r-- | src/link/MachO/CodeSignature.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link/MachO/CodeSignature.zig b/src/link/MachO/CodeSignature.zig index 84c5b49362..fcb4c16063 100644 --- a/src/link/MachO/CodeSignature.zig +++ b/src/link/MachO/CodeSignature.zig @@ -288,8 +288,8 @@ pub fn writeAdhocSignature( self.code_directory.inner.nCodeSlots = total_pages; // Calculate hash for each page (in file) and write it to the buffer - var hasher = Hasher(Sha256){}; - try hasher.hash(gpa, comp.thread_pool, opts.file, self.code_directory.code_slots.items, .{ + var hasher = Hasher(Sha256){ .allocator = gpa, .thread_pool = comp.thread_pool }; + try hasher.hash(opts.file, self.code_directory.code_slots.items, .{ .chunk_size = self.page_size, .max_file_size = opts.file_size, }); |
