diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:43:56 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:43:56 +0000 |
commit | deb6822302cb9009adc3450dd405817cc0dae9cd (patch) | |
tree | 660eb4ce263fe529c95a756fe46bd20c70fecf25 /src/socketengine.cpp | |
parent | e35dd5cbb8b7d0d39a83b35c5837c1f062977eea (diff) |
Cast rework: use C++ style static_cast<> instead of C-style casts
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11595 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine.cpp')
-rw-r--r-- | src/socketengine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp index 187a06541..9d54e8b66 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -211,25 +211,25 @@ int SocketEngine::GetSockName(EventHandler* fd, sockaddr *name, socklen_t* namel int SocketEngine::RecvFrom(EventHandler* fd, void *buf, size_t len, int flags, sockaddr *from, socklen_t *fromlen) { this->UpdateStats(len, 0); - return recvfrom(fd->GetFd(), (char*)buf, len, flags, from, fromlen); + return recvfrom(fd->GetFd(), buf, len, flags, from, fromlen); } int SocketEngine::Send(EventHandler* fd, const void *buf, size_t len, int flags) { this->UpdateStats(0, len); - return send(fd->GetFd(), (const char*)buf, len, flags); + return send(fd->GetFd(), buf, len, flags); } int SocketEngine::Recv(EventHandler* fd, void *buf, size_t len, int flags) { this->UpdateStats(len, 0); - return recv(fd->GetFd(), (char*)buf, len, flags); + return recv(fd->GetFd(), buf, len, flags); } int SocketEngine::SendTo(EventHandler* fd, const void *buf, size_t len, int flags, const sockaddr *to, socklen_t tolen) { this->UpdateStats(0, len); - return sendto(fd->GetFd(), (const char*)buf, len, flags, to, tolen); + return sendto(fd->GetFd(), buf, len, flags, to, tolen); } int SocketEngine::Connect(EventHandler* fd, const sockaddr *serv_addr, socklen_t addrlen) |