diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2011-06-06 17:41:55 -0400 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2011-06-06 17:41:55 -0400 |
commit | 9fcb032269d02b1933e2c56c73f9c38f8a6146ec (patch) | |
tree | 66c2cf1396a8430ba9412e151a5c365adc150bf3 /src/threadengines/threadengine_win32.cpp | |
parent | 58ab072505fcc58e35799065c42fb7112c4aed3f (diff) |
Fix incorrect typecast
Diffstat (limited to 'src/threadengines/threadengine_win32.cpp')
-rw-r--r-- | src/threadengines/threadengine_win32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threadengines/threadengine_win32.cpp b/src/threadengines/threadengine_win32.cpp index b2a4dcaca..5cf20f862 100644 --- a/src/threadengines/threadengine_win32.cpp +++ b/src/threadengines/threadengine_win32.cpp @@ -89,7 +89,7 @@ SocketThread::SocketThread() socklen_t sz = sizeof(addr); getsockname(listenFD, reinterpret_cast<struct sockaddr*>(&addr), &sz); connect(connFD, reinterpret_cast<struct sockaddr*>(&addr), sz); - int nfd = accept(listenFD, reinterpret_cast<struct sockaddr*>(&addr), (int*)sz); + int nfd = accept(listenFD, reinterpret_cast<struct sockaddr*>(&addr), &sz); if (nfd < 0) throw CoreException("Could not create ITC pipe"); new ThreadSignalSocket(this, nfd); |