From 398e861b554268e43e8af64ba72c682630302ec3 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Thu, 7 Sep 2023 16:43:01 +0200 Subject: internal: fix warnings --- src/helpers/MiscFunctions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/helpers/MiscFunctions.cpp') diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index 5ded4f4f..9000eff2 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -590,8 +590,8 @@ int64_t getPPIDof(int64_t pid) { return 0; #else - std::string dir = "/proc/" + std::to_string(pid) + "/status"; - FILE* infile; + std::string dir = "/proc/" + std::to_string(pid) + "/status"; + FILE* infile; infile = fopen(dir.c_str(), "r"); if (!infile) @@ -706,6 +706,6 @@ void throwError(const std::string& err) { throw std::runtime_error(err); } -std::string sendToLog(uint8_t level, const std::string& s) { +void sendToLog(uint8_t level, const std::string& s) { Debug::log((LogLevel)level, s); } -- cgit v1.2.3