summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main.zig b/src/main.zig
index 58f9541a..3dec406c 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -228,8 +228,7 @@ fn forwardWords(err: anyerror, buf: []u8) []const u8 {
/// pane `path` landed in (the one it already had, if open), then /log
/// followed on one connection until that pane's `del` -- exit 0 -- or the
/// connection ends with the session -- exit 1.
-fn waitForDel(io: std.Io, gpa: std.mem.Allocator, dial: []const u8, path: []const u8, known: ?u32) noreturn {
- _ = io;
+fn waitForDel(gpa: std.mem.Allocator, dial: []const u8, path: []const u8, known: ?u32) noreturn {
// The pane this launch made (a name not there yet), or the one its
// look answered, is known by its serial; one the look answered none
// for is found by its file. Found by none after the look went there,
@@ -319,10 +318,7 @@ fn die(io: std.Io, comptime fmt: []const u8, args: anytype) noreturn {
/// The second line is what a replica's build must share with its session's
/// (wire.zig `semantics`).
-const version_text = (if (pardes.commit) |c|
- "pardes " ++ pardes.version ++ " (" ++ c ++ ")\n"
-else
- "pardes " ++ pardes.version ++ "\n") ++ std.fmt.comptimePrint("semantics {x:0>16}\n", .{@import("wire.zig").semantics});
+const version_text = upgrade.version_line ++ "\n" ++ std.fmt.comptimePrint("semantics {x:0>16}\n", .{@import("wire.zig").semantics});
const nested_text =
\\pardes: this shell is already inside pardes, and a pardes inside a pardes
@@ -730,7 +726,7 @@ fn nativeMain(std_init: std.process.Init) !void {
Refuse.with(init.io, word, err);
};
}
- if (wait) waitForDel(init.io, arena, parent.dial, path, made_serial);
+ if (wait) waitForDel(arena, parent.dial, path, made_serial);
return;
}
if (resuming) positional = null;