From c066e49fd31824a6e0d0b58d8bc2f576d58ec8f9 Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 17 Sep 2026 01:35:24 +0000 Subject: [PATCH] 2026-09-17 01:35:24 Signed-off-by: lizzie --- src/common/error.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/error.cpp b/src/common/error.cpp index 8cc56d0a41..a736f7667c 100644 --- a/src/common/error.cpp +++ b/src/common/error.cpp @@ -20,9 +20,8 @@ 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(const 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 ? "(strerror_r failed to format error)"