summaryrefslogtreecommitdiff
path: root/src/socketengine.cpp
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-10 20:05:36 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-10 20:05:36 +0000
commit5eff6e24a95adf6fcda63304b17f829d0f8d40fe (patch)
tree207baa84c154c68ef6468d4df8b26247aefacac4 /src/socketengine.cpp
parent64904b639d154394fa8138a7c8c0d5ff17e14718 (diff)
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
Diffstat (limited to 'src/socketengine.cpp')
-rw-r--r--src/socketengine.cpp8
1 files changed, 4 insertions, 4 deletions
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)