summaryrefslogtreecommitdiffstats
path: root/src/Net/Listener.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Net/Listener.cpp')
-rw-r--r--src/Net/Listener.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Net/Listener.cpp b/src/Net/Listener.cpp
index 892ec9d..954129a 100644
--- a/src/Net/Listener.cpp
+++ b/src/Net/Listener.cpp
@@ -98,7 +98,7 @@ ServerConnection* Listener::getConnection(const std::map<int,const short*> &poll
socklen_t addrlen = sizeof(sa);
- while((sd = accept(sock, reinterpret_cast<struct sockaddr*>(&sa), &addrlen)) >= 0) {
+ while((sd = accept(sock, (struct sockaddr*)&sa, &addrlen)) >= 0) {
connections.push_back(new ServerConnection(sd, IPAddress(sa), dh_params, x905CertFile, x905KeyFile));
addrlen = sizeof(sa);