aboutsummaryrefslogtreecommitdiff
path: root/src/libarchive/libarchive.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/libarchive/libarchive.zig')
-rw-r--r--src/libarchive/libarchive.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libarchive/libarchive.zig b/src/libarchive/libarchive.zig
index b1c5875b6..447409661 100644
--- a/src/libarchive/libarchive.zig
+++ b/src/libarchive/libarchive.zig
@@ -357,7 +357,7 @@ pub const Archive = struct {
pub fn hash(_: @This(), k: u64) u32 {
return @truncate(u32, k);
}
- pub fn eql(_: @This(), a: u64, b: u64) bool {
+ pub fn eql(_: @This(), a: u64, b: u64, _: usize) bool {
return a == b;
}
};
@@ -428,7 +428,7 @@ pub const Archive = struct {
const size = @intCast(usize, std.math.max(lib.archive_entry_size(entry), 0));
if (size > 0) {
- var opened = dir.openFileZ(pathname, .{ .write = true }) catch continue :loop;
+ var opened = dir.openFileZ(pathname, .{ .mode = .write_only }) catch continue :loop;
var stat = try opened.stat();
if (stat.size > 0) {