mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
Make mode variable const.
This commit is contained in:
parent
ba71eba410
commit
62cb4e14a6
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue