From d5c37d9122240fe95d308fbe15874e14dd786c5a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 21 Oct 2026 14:38:16 -0300 Subject: Build with Zig 0.17 --- 9ns/src/nine.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '9ns/src/nine.zig') diff --git a/9ns/src/nine.zig b/9ns/src/nine.zig index 1eda9e2..6b48e7a 100644 --- a/9ns/src/nine.zig +++ b/9ns/src/nine.zig @@ -937,7 +937,7 @@ fn readSocket(fd: i32, buf: []u8) Session.Error!usize { /// Rerror text → errno, per docs/DESIGN.md (first match wins): cloud9's /// fs.enameErrno, which a server's own tests can ask too. pub fn enameToErrno(ename: []const u8) linux.E { - return @enumFromInt(cloud9.fs.enameErrno(ename)); + return @fromBackingInt(@intCast(cloud9.fs.enameErrno(ename))); } // -- transport ------------------------------------------------------------------ @@ -960,7 +960,7 @@ fn openTransport(address: Address) !i32 { .ip4 => |a| { const sa: linux.sockaddr.in = .{ .port = std.mem.nativeToBig(u16, t.port), - .addr = @bitCast(a.bytes), + .addr = std.mem.bytesToValue(u32, &a.bytes), }; const fd = try newSocket(linux.AF.INET, linux.IPPROTO.TCP); errdefer _ = linux.close(fd); -- cgit v1.3