diff --git a/icinga-app/icinga.cpp b/icinga-app/icinga.cpp index a0d75293c..8a36a9cbd 100644 --- a/icinga-app/icinga.cpp +++ b/icinga-app/icinga.cpp @@ -94,7 +94,7 @@ static std::vector GlobalArgumentCompletion(const String& argument, cons return std::vector(); } -int Main(void) +static int Main(void) { int argc = Application::GetArgC(); char **argv = Application::GetArgV(); @@ -701,7 +701,7 @@ static int SetupService(bool install, int argc, char **argv) return 0; } -VOID ReportSvcStatus(DWORD dwCurrentState, +static VOID ReportSvcStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode, DWORD dwWaitHint) { @@ -725,7 +725,7 @@ VOID ReportSvcStatus(DWORD dwCurrentState, SetServiceStatus(l_SvcStatusHandle, &l_SvcStatus); } -VOID WINAPI ServiceControlHandler(DWORD dwCtrl) +static VOID WINAPI ServiceControlHandler(DWORD dwCtrl) { if (dwCtrl == SERVICE_CONTROL_STOP) { ReportSvcStatus(SERVICE_STOP_PENDING, NO_ERROR, 0); @@ -733,7 +733,7 @@ VOID WINAPI ServiceControlHandler(DWORD dwCtrl) } } -VOID WINAPI ServiceMain(DWORD argc, LPSTR *argv) +static VOID WINAPI ServiceMain(DWORD argc, LPSTR *argv) { l_SvcStatusHandle = RegisterServiceCtrlHandler( "icinga2",