]> granicus.if.org Git - icinga2/commitdiff
Error messages: Use strerror() for message formatting.
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 5 Jun 2014 15:45:02 +0000 (17:45 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 5 Jun 2014 15:45:02 +0000 (17:45 +0200)
Refs #6070

lib/base/utility.cpp

index 9d7e5184a020a40e61fd5380a222a684e55c53c0..b59a1f81e620d066858b837a3260b0b37be4690d 100644 (file)
@@ -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();
 }