diff --git a/src/lib/server/ClientListener.cpp b/src/lib/server/ClientListener.cpp index a34ccf68..cf64bc30 100644 --- a/src/lib/server/ClientListener.cpp +++ b/src/lib/server/ClientListener.cpp @@ -161,7 +161,7 @@ ClientListener::handleClientAccepted(const Event&, void* vsocket) { LOG((CLOG_NOTE "accepted client connection")); - IDataSocket* socket = reinterpret_cast(vsocket); + IDataSocket* socket = static_cast(vsocket); // filter socket messages, including a packetizing filter bool adopt = !m_useSecureNetwork;