diff --git a/src/common/error.cpp b/src/common/error.cpp index a736f7667c..662061aaba 100644 --- a/src/common/error.cpp +++ b/src/common/error.cpp @@ -20,7 +20,7 @@ namespace Common { // glibc, mlibc, musl, and newlib all define their own variants of strerror_r // We don't need to use the preprocessor, we can just select depending on return type template std::string HandleStrerrorR(T r, char *err_str); -template std::string HandleStrerrorR(const char* r, char *) { return std::string{r}; } +template std::string HandleStrerrorR(char* r, char *) { return std::string{r}; } template std::string HandleStrerrorR(const char* r, char *) { return std::string{r}; } template std::string HandleStrerrorR(int r, char *err_str) { return std::string{r != 0