mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Fix incorrect format specifier for fprintf
This commit is contained in:
parent
96583857c0
commit
f7ca0c5b52
@ -776,7 +776,7 @@ void Application::UpdatePidFile(const String& filename, pid_t pid)
|
|||||||
}
|
}
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
fprintf(m_PidFile, "%d\n", pid);
|
fprintf(m_PidFile, "%lu\n", (unsigned long)pid);
|
||||||
fflush(m_PidFile);
|
fflush(m_PidFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user