From 65e708779b4a08937e7fa219ef466375454b6d89 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 09:26:20 +0000 Subject: [PATCH] Fix function overload order to resolve compilation error Co-authored-by: Alexays <13947260+Alexays@users.noreply.github.com> --- include/util/command.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/util/command.hpp b/include/util/command.hpp index 0023df83..58c59a96 100644 --- a/include/util/command.hpp +++ b/include/util/command.hpp @@ -138,10 +138,6 @@ inline struct res execNoRead(const std::string& cmd) { return {WEXITSTATUS(stat), ""}; } -inline int32_t forkExec(const std::string& cmd) { - return forkExec(cmd, ""); -} - inline int32_t forkExec(const std::string& cmd, const std::string& output_name) { if (cmd == "") return -1; @@ -176,4 +172,8 @@ inline int32_t forkExec(const std::string& cmd, const std::string& output_name) return pid; } +inline int32_t forkExec(const std::string& cmd) { + return forkExec(cmd, ""); +} + } // namespace waybar::util::command