[icinga-checkins] icinga.org: icinga2/next: Error messages: Use strerror() for message formatting.

git at icinga.org git at icinga.org
Thu Jun 5 18:29:54 CEST 2014


Module: icinga2
Branch: next
Commit: 09ad04b09a135c8f5b56f50140e455ae47765c4c
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=09ad04b09a135c8f5b56f50140e455ae47765c4c

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Thu Jun  5 17:45:02 2014 +0200

Error messages: Use strerror() for message formatting.

Refs #6070

---

 lib/base/utility.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp
index 9d7e518..b59a1f8 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();
 }



More information about the icinga-checkins mailing list