internal: fix warnings

This commit is contained in:
vaxerski 2023-09-07 16:43:01 +02:00
parent 0be6b03ee9
commit 398e861b55
5 changed files with 6 additions and 7 deletions

View file

@ -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);
}