From: Michael Friedrich Date: Thu, 5 Jun 2014 15:45:02 +0000 (+0200) Subject: Error messages: Use strerror() for message formatting. X-Git-Tag: v2.0.0-beta2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09ad04b09a135c8f5b56f50140e455ae47765c4c;p=icinga2 Error messages: Use strerror() for message formatting. Refs #6070 --- diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index 9d7e5184a..b59a1f81e 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -829,7 +829,7 @@ String Utility::FormatErrorNumber(int code) { msgbuf << code << ", \"" << result << "\""; return tmp.str(); #else - msgbuf << gai_strerror(code) << std::endl; + msgbuf << strerror(code); #endif return msgbuf.str(); }