summaryrefslogtreecommitdiff
path: root/src/9p_io.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 12:14:58 -0300
committerGabriel Schneider <[email protected]>2026-11-06 14:56:36 -0300
commit60dd9514c8676e79c625948b5e9d2c6d745e8e87 (patch)
tree9c8009a5f47314ccd6e98b1a001e965ecb0b6444 /src/9p_io.zig
parent4839c4b037d401393bbc87143d663e115c71242e (diff)
downloadpardes-60dd9514c8676e79c625948b5e9d2c6d745e8e87.tar.gz
pardes-60dd9514c8676e79c625948b5e9d2c6d745e8e87.zip
idioms #3, the allocator a function is handed: Handover.carries opens its dump with the caller's gpa, not the page allocator, and Client.follow and stepGlide lose the gpa they never used
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/9p_io.zig')
-rw-r--r--src/9p_io.zig2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/9p_io.zig b/src/9p_io.zig
index 72548d2a..10109bb8 100644
--- a/src/9p_io.zig
+++ b/src/9p_io.zig
@@ -2613,7 +2613,6 @@ pub const Client = struct {
/// a time, until `record(ctx, bytes)` says done. An end of file or a
/// dropped connection is Hangup. What `pardes --wait` blocks on.
pub fn follow(
- gpa: std.mem.Allocator,
dial: []const u8,
path: []const u8,
first: []const u8,
@@ -2625,7 +2624,6 @@ pub const Client = struct {
var names: [max_depth][]const u8 = undefined;
const n = try elements(path, &names);
var remote: RemoteError = .{};
- _ = gpa;
const s = try startSession(dial, path);
defer endSession(s, false);
const fid = try walkTo(s, names[0..n], &remote);