1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/devel/codeworker/files/patch-NetSocket.cpp
2007-05-26 21:01:13 +00:00

24 lines
675 B
C++

$FreeBSD$
--- NetSocket.cpp.orig
+++ NetSocket.cpp
@@ -45,7 +45,7 @@
namespace CodeWorker {
bool socketReaderCBK(ScpStream& theStream, void* pData) {
char tcBuffer[2048];
- int hSocket = (int) pData;
+ int hSocket = (intptr_t) pData;
int iLength = recv(hSocket, tcBuffer, 2047, 0);
if (iLength <= 0) return false;
theStream.writeBinaryData(tcBuffer, iLength);
@@ -53,7 +53,7 @@
}
bool socketWriterCBK(ScpStream& theStream, void* pData) {
- int hSocket = (int) pData;
+ int hSocket = (intptr_t) pData;
int iLength = theStream.size();
if (iLength <= 0) return false;
return NetSocket::sendToSocket(hSocket, theStream.readBuffer(), iLength);