summaryrefslogtreecommitdiff
path: root/runtime/9p_io.zig
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/9p_io.zig')
-rw-r--r--runtime/9p_io.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/9p_io.zig b/runtime/9p_io.zig
index ef4ecfdd..bcb0f81b 100644
--- a/runtime/9p_io.zig
+++ b/runtime/9p_io.zig
@@ -1109,7 +1109,7 @@ pub fn start(io: std.Io, gpa: std.mem.Allocator, core: *pardes.Pardes) ?*Listene
// unreachable: a u32 is at most 10 digits
const fallback = std.fmt.bufPrint(&name, "{d}", .{@as(u32, @intCast(libc.getpid()))}) catch unreachable;
return listen(io, gpa, core, core.opts.ninep_name, fallback, core.opts.ninep_tcp) catch {
- if (refusal.len > 0) core.setMessage(0, refusal) else core.reportError(0, "9p listener", error.ListenFailed);
+ if (refusal.len > 0) core.setMessage(.at(0), refusal) else core.reportError(.at(0), "9p listener", error.ListenFailed);
return null;
};
}
@@ -2647,7 +2647,7 @@ test "a held read is answered when the log has news, and a flushed one spends no
try s.flush();
try heldNow.count(p, 2);
pardes.turn.wake();
- p.setMessage(0, "after the flush");
+ p.setMessage(.at(0), "after the flush");
pardes.turn.rest();
try heldNow.count(p, 1);
pardes.turn.wake();
@@ -2670,7 +2670,7 @@ test "a held read is answered when the log has news, and a flushed one spends no
try testing.expectEqual(second, refused.tag);
try testing.expectEqualStrings(pardes.ctlfs.e_in_use, refused.result.fail);
pardes.turn.wake();
- p.setMessage(0, "while held");
+ p.setMessage(.at(0), "while held");
const retry_all = pardes.turn.parked;
pardes.turn.rest();
try testing.expect(!retry_all);
@@ -2698,9 +2698,9 @@ test "a held read is answered when the log has news, and a flushed one spends no
try s.flush();
try heldNow.count(p, 1);
pardes.turn.wake();
- p.setMessage(0, "queued one");
- p.setMessage(0, "queued two");
- p.setMessage(0, "queued three");
+ p.setMessage(.at(0), "queued one");
+ p.setMessage(.at(0), "queued two");
+ p.setMessage(.at(0), "queued three");
l.reset(p);
pardes.turn.rest();
const cut = try s.settle();