]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect format specifier for fprintf
authorGunnar Beutner <gunnar@beutner.name>
Mon, 2 Mar 2015 11:40:02 +0000 (12:40 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 2 Mar 2015 11:41:44 +0000 (12:41 +0100)
lib/base/application.cpp

index b979924eafd9d132363a6506fe346369eeddb787..22abf8b24c99c031fdf4538cefe2de01d5013e0f 100644 (file)
@@ -776,7 +776,7 @@ void Application::UpdatePidFile(const String& filename, pid_t pid)
        }
 #endif /* _WIN32 */
 
-       fprintf(m_PidFile, "%d\n", pid);
+       fprintf(m_PidFile, "%lu\n", (unsigned long)pid);
        fflush(m_PidFile);
 }