From 5ad936b13f317cb277bf03c19e9734d931b1bd00 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 1 Sep 2009 15:08:00 +0000 Subject: Remove unneeded paramaters from OnAcceptReady git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11581 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/threadengines/threadengine_win32.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/threadengines') diff --git a/src/threadengines/threadengine_win32.cpp b/src/threadengines/threadengine_win32.cpp index eb710bbde..361d25cc4 100644 --- a/src/threadengines/threadengine_win32.cpp +++ b/src/threadengines/threadengine_win32.cpp @@ -55,7 +55,7 @@ class ThreadSignalSocket : public BufferedSocket { SocketThread* parent; public: - ThreadSignalSocket(SocketThread* t, InspIRCd* SI, int newfd, char* ip) + ThreadSignalSocket(SocketThread* t, InspIRCd* SI, int newfd, const char* ip) : BufferedSocket(SI, newfd, ip), parent(t) { } @@ -86,11 +86,10 @@ class ThreadSignalListener : public ListenSocketBase } } - virtual void OnAcceptReady(const std::string &ipconnectedto, int nfd, const std::string &incomingip) + virtual void OnAcceptReady(int nfd) { - new ThreadSignalSocket(parent, ServerInstance, nfd, const_cast(ipconnectedto.c_str())); + new ThreadSignalSocket(parent, ServerInstance, nfd, ""); ServerInstance->SE->DelFd(this); - // XXX unsafe casts suck } /* Using getsockname and ntohs, we can determine which port number we were allocated */ int GetPort() -- cgit v1.2.3