[icinga-checkins] icinga.org: icinga2/master: Make mode variable const.

git at icinga.org git at icinga.org
Tue Mar 12 14:50:48 CET 2013


Module: icinga2
Branch: master
Commit: 62cb4e14a6cdb0d836dfe8c06ce87ec65f026396
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=62cb4e14a6cdb0d836dfe8c06ce87ec65f026396

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Tue Mar 12 14:50:40 2013 +0100

Make mode variable const.

---

 lib/base/application.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/base/application.cpp b/lib/base/application.cpp
index cfbc226..8c9c8b4 100644
--- a/lib/base/application.cpp
+++ b/lib/base/application.cpp
@@ -463,9 +463,9 @@ void Application::UpdatePidFile(const String& filename)
 		fclose(m_PidFile);
 
 #ifndef _WIN32
-	char *mode = "r+";
+	const char *mode = "r+";
 #else /* _WIN32 */
-	char *mode = "w";
+	const char *mode = "w";
 #endif /* _WIN32 */
 
 	/* There's just no sane way of getting a file descriptor for a





More information about the icinga-checkins mailing list