summaryrefslogtreecommitdiff
path: root/src/win32
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/signalHandler.hpp10
-rw-r--r--src/win32/winService.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/win32/signalHandler.hpp b/src/win32/signalHandler.hpp
index aeafcb4..fb0c7e6 100644
--- a/src/win32/signalHandler.hpp
+++ b/src/win32/signalHandler.hpp
@@ -35,31 +35,31 @@
#include <windows.h>
-int CtrlCHandler(const SigNum& /*sig*/, const std::string& /*msg*/)
+int CtrlCHandler(int /*sig*/, const std::string& /*msg*/)
{
cLog.msg(Log::PRIO_NOTICE) << "CTRL-C Event received, exitting";
return 1;
}
-int CtrlBreakHandler(const SigNum& /*sig*/, const std::string& /*msg*/)
+int CtrlBreakHandler(int /*sig*/, const std::string& /*msg*/)
{
cLog.msg(Log::PRIO_NOTICE) << "CTRL-Break Event received, ignoring";
return 0;
}
-int CtrlCloseHandler(const SigNum& /*sig*/, const std::string& /*msg*/)
+int CtrlCloseHandler(int /*sig*/, const std::string& /*msg*/)
{
cLog.msg(Log::PRIO_NOTICE) << "Close Event received, exitting";
return 1;
}
-int CtrlLogoffHandler(const SigNum& /*sig*/, const std::string& /*msg*/)
+int CtrlLogoffHandler(int /*sig*/, const std::string& /*msg*/)
{
cLog.msg(Log::PRIO_NOTICE) << "LogOff Event received, exitting";
return 1;
}
-int CtrlShutdownHandler(const SigNum& /*sig*/, const std::string& /*msg*/)
+int CtrlShutdownHandler(int /*sig*/, const std::string& /*msg*/)
{
cLog.msg(Log::PRIO_NOTICE) << "Shutdown Event received, exitting";
return 1;
diff --git a/src/win32/winService.cpp b/src/win32/winService.cpp
index 4e324b2..f796fcf 100644
--- a/src/win32/winService.cpp
+++ b/src/win32/winService.cpp
@@ -130,7 +130,7 @@ VOID WINAPI WinService::ctrlHandler(DWORD dwCtrl)
gSignalController.inject(dwCtrl);
}
-int WinService::handleCtrlSignal(const SigNum& sig, const std::string& msg)
+int WinService::handleCtrlSignal(int sig, const std::string& msg)
{
switch(sig) {
case SERVICE_CONTROL_STOP: {