From 2ffc4abedcef7f077ebc7290b653415243da0975 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:51:07 -0300 Subject: processes: small ones (main's version text from upgrade.version_line and waitForDel's unused io; daemon's find returns null with its words, drop takes the slot alone, send, recv, Got and setName are private; replica's Joining is the daemon's and PARDES_REPLICA_LAG_KB, which nothing sets, goes; host_io's dead line variable; Handover's own readdir is std.c's) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/Handover.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Handover.zig') diff --git a/src/Handover.zig b/src/Handover.zig index 549e4d58..d245a6af 100644 --- a/src/Handover.zig +++ b/src/Handover.zig @@ -385,8 +385,6 @@ fn carry(io: std.Io, job: *Job) void { job.post(job.post_ctx, job.seq, false, "the new window did not come up in 15 s"); } -extern "c" fn readdir(dir: *libc.DIR) ?*libc.dirent; - /// The registry entry of the window the pointer was let go over, asked of /// every window by its `status` (`pointer in`): Wayland tells no client /// where any window is, only whether the pointer is over its own, and the @@ -404,7 +402,7 @@ fn windowUnderPointer(io: std.Io, job: *Job, out: *[512]u8) std.Io.Cancelable!?[ const dir = libc.opendir(reg) orelse return null; defer _ = libc.closedir(dir); var windows: usize = 0; - while (readdir(dir)) |ent| { + while (libc.readdir(dir)) |ent| { const name = std.mem.sliceTo(&ent.name, 0); if (name.len == 0 or name[0] == '.') continue; const entry = std.fmt.bufPrintSentinel(out, "{s}/{s}", .{ reg, name }, 0) catch continue; -- cgit v1.3