diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-27 17:39:51 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-27 17:39:51 +0000 |
commit | f40811fd6e82d62010b395d2897b46e58dfebf6c (patch) | |
tree | c3646a0732c9a0cef4b9f445e37fc3461305a969 /win/inspircd_win32wrapper.cpp | |
parent | 156c232d1d22568d20ec498c4bd344bf03052e4a (diff) |
Fix compile errors in windows
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7592 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'win/inspircd_win32wrapper.cpp')
-rw-r--r-- | win/inspircd_win32wrapper.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp index 37d071459..0e7f0172e 100644 --- a/win/inspircd_win32wrapper.cpp +++ b/win/inspircd_win32wrapper.cpp @@ -366,7 +366,7 @@ int getopt_long_only(int ___argc, char *const *___argv, const char *__shortopts, #define IPC_MESSAGE_DIE 2 #define IPC_MESSAGE_RESTART 3 -void InitIPC() +void IPC::IPC(InspIRCd* Srv) : Instance(Srv) { static DWORD buflen = 1024; static const char * pipename = "\\\\.\\mailslot\\Inspircd"; @@ -375,7 +375,7 @@ void InitIPC() printf("IPC Pipe could not be created. Are you sure you didn't start InspIRCd twice?\n"); } -void CheckIPC(InspIRCd * Instance) +void IPC::Check() { if (hIPCPipe == INVALID_HANDLE_VALUE) return; @@ -407,7 +407,7 @@ void CheckIPC(InspIRCd * Instance) } } -void CloseIPC() +void IPC::~IPC() { CloseHandle(hIPCPipe); } @@ -643,6 +643,3 @@ bool ValidateWindowsDnsServer(ServerConfig* conf, const char* tag, const char* v } return true; } - -#else - |