From 5eff6e24a95adf6fcda63304b17f829d0f8d40fe Mon Sep 17 00:00:00 2001 From: peavey Date: Sat, 10 Oct 2009 20:05:36 +0000 Subject: Compile fixes, these too take char* on windows and not void*. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11826 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/socketengine.cpp b/src/socketengine.cpp index 3108ee705..2dbc82b27 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -160,25 +160,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(), buf, len, flags, from, fromlen); + return recvfrom(fd->GetFd(), (char*)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(), buf, len, flags); + return send(fd->GetFd(), (char*)buf, len, flags); } int SocketEngine::Recv(EventHandler* fd, void *buf, size_t len, int flags) { this->UpdateStats(len, 0); - return recv(fd->GetFd(), buf, len, flags); + return recv(fd->GetFd(), (char*)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(), buf, len, flags, to, tolen); + return sendto(fd->GetFd(), (char*)buf, len, flags, to, tolen); } int SocketEngine::Connect(EventHandler* fd, const sockaddr *serv_addr, socklen_t addrlen) -- cgit v1.2.3