mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
24 lines
675 B
C++
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);
|