Make a few functions static

This commit is contained in:
Gunnar Beutner 2017-11-21 14:15:00 +01:00
parent 6739023678
commit f7b4e81ffd

View File

@ -94,7 +94,7 @@ static std::vector<String> GlobalArgumentCompletion(const String& argument, cons
return std::vector<String>(); return std::vector<String>();
} }
int Main(void) static int Main(void)
{ {
int argc = Application::GetArgC(); int argc = Application::GetArgC();
char **argv = Application::GetArgV(); char **argv = Application::GetArgV();
@ -701,7 +701,7 @@ static int SetupService(bool install, int argc, char **argv)
return 0; return 0;
} }
VOID ReportSvcStatus(DWORD dwCurrentState, static VOID ReportSvcStatus(DWORD dwCurrentState,
DWORD dwWin32ExitCode, DWORD dwWin32ExitCode,
DWORD dwWaitHint) DWORD dwWaitHint)
{ {
@ -725,7 +725,7 @@ VOID ReportSvcStatus(DWORD dwCurrentState,
SetServiceStatus(l_SvcStatusHandle, &l_SvcStatus); SetServiceStatus(l_SvcStatusHandle, &l_SvcStatus);
} }
VOID WINAPI ServiceControlHandler(DWORD dwCtrl) static VOID WINAPI ServiceControlHandler(DWORD dwCtrl)
{ {
if (dwCtrl == SERVICE_CONTROL_STOP) { if (dwCtrl == SERVICE_CONTROL_STOP) {
ReportSvcStatus(SERVICE_STOP_PENDING, NO_ERROR, 0); 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( l_SvcStatusHandle = RegisterServiceCtrlHandler(
"icinga2", "icinga2",