From be0c2e28b26efa876e033989cc8c587a8bcdfaa8 Mon Sep 17 00:00:00 2001 From: ferreo Date: Fri, 17 Jan 2025 19:57:36 +0000 Subject: [PATCH] Don't log ananicy failures - fix zig 0.14.0 build --- falcond/src/clients/scx_scheds.zig | 4 +--- falcond/src/config/parser.zig | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/falcond/src/clients/scx_scheds.zig b/falcond/src/clients/scx_scheds.zig index c2ae36f..08081f9 100644 --- a/falcond/src/clients/scx_scheds.zig +++ b/falcond/src/clients/scx_scheds.zig @@ -266,15 +266,13 @@ fn runSystemCtl(alloc: std.mem.Allocator, command: []const u8, service: []const .allocator = alloc, .argv = &argv, .max_output_bytes = max_output_size, - }) catch |err| { - std.log.warn("Failed to run systemctl {s} {s}: {}", .{ command, service, err }); + }) catch { return; }; defer alloc.free(result.stderr); defer alloc.free(result.stdout); if (result.term.Exited != 0) { - std.log.warn("systemctl failed: {s}", .{result.stderr}); return; } } diff --git a/falcond/src/config/parser.zig b/falcond/src/config/parser.zig index 0ce3cd6..40b371a 100644 --- a/falcond/src/config/parser.zig +++ b/falcond/src/config/parser.zig @@ -288,7 +288,7 @@ pub fn Parser(comptime T: type) type { } }, .pointer => |ptr_info| { - if (ptr_info.size != .Slice) return error.InvalidSyntax; + if (ptr_info.size != .many) return error.InvalidSyntax; switch (ptr_info.child) { u8 => { @field(result, field.name) = try self.parseString();