From c4c91c7cbc6c413e59f05be88e6bd1c6bc83679d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 10 Sep 2008 21:46:33 +0200 Subject: Server-Status-Abfrage zeigt jetzt uptime an --- src/Net/ServerConnection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Net/ServerConnection.cpp') diff --git a/src/Net/ServerConnection.cpp b/src/Net/ServerConnection.cpp index 0c35991..fbdd69f 100644 --- a/src/Net/ServerConnection.cpp +++ b/src/Net/ServerConnection.cpp @@ -32,7 +32,7 @@ void ServerConnection::connectionHeaderReceiveHandler(const void *data, unsigned // Error... disconnect return; - const ConnectionHeader *header = reinterpret_cast(data); + const ConnectionHeader *header = (const ConnectionHeader*)data; if(header->m != 'M' || header->a != 'A' || header->d != 'D') // Error... disconnect @@ -52,7 +52,7 @@ void ServerConnection::connectionHeaderReceiveHandler(const void *data, unsigned ConnectionHeader header2 = {'M', 'A', 'D', 0, 0, 1, 1, 0}; - rawSend(reinterpret_cast(&header2), sizeof(header2)); + rawSend((uint8_t*)&header2, sizeof(header2)); enterReceiveLoop(); } @@ -69,7 +69,7 @@ ServerConnection::ServerConnection(int sock0, const IPAddress &address, gnutls_d gnutls_init(&session, GNUTLS_SERVER); gnutls_set_default_priority(session); gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, x509_cred); - gnutls_transport_set_ptr(session, reinterpret_cast(sock)); + gnutls_transport_set_ptr(session, (gnutls_transport_ptr_t)sock); handshake(); } -- cgit v1.2.3