mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Make mode variable const.
This commit is contained in:
parent
ba71eba410
commit
62cb4e14a6
@ -463,9 +463,9 @@ void Application::UpdatePidFile(const String& filename)
|
|||||||
fclose(m_PidFile);
|
fclose(m_PidFile);
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
char *mode = "r+";
|
const char *mode = "r+";
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
char *mode = "w";
|
const char *mode = "w";
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
/* There's just no sane way of getting a file descriptor for a
|
/* There's just no sane way of getting a file descriptor for a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user