summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2011-06-06 17:41:55 -0400
committerDaniel De Graaf <danieldg@inspircd.org>2011-06-06 17:41:55 -0400
commit9fcb032269d02b1933e2c56c73f9c38f8a6146ec (patch)
tree66c2cf1396a8430ba9412e151a5c365adc150bf3 /src
parent58ab072505fcc58e35799065c42fb7112c4aed3f (diff)
Fix incorrect typecast
Diffstat (limited to 'src')
-rw-r--r--src/threadengines/threadengine_win32.cpp2
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);