mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-10-27 10:03:46 +00:00
Revert "update other bits in OpenBTS to use safer read() signature"
This reverts commit e09152ccb5.
This commit is contained in:
@@ -218,7 +218,7 @@ void* PeerInterface::serviceLoop2(void*)
|
|||||||
|
|
||||||
void PeerInterface::drive()
|
void PeerInterface::drive()
|
||||||
{
|
{
|
||||||
int numRead = mSocket.read(mReadBuffer, sizeof(mReadBuffer));
|
int numRead = mSocket.read(mReadBuffer);
|
||||||
if (numRead<0) {
|
if (numRead<0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -669,7 +669,7 @@ void SipInterface::siDrive2()
|
|||||||
// All inbound SIP messages go here for processing.
|
// All inbound SIP messages go here for processing.
|
||||||
|
|
||||||
LOG(DEBUG) << "blocking on socket";
|
LOG(DEBUG) << "blocking on socket";
|
||||||
int numRead = mSIPSocket->read(mReadBuffer, sizeof(mReadBuffer));
|
int numRead = mSIPSocket->read(mReadBuffer);
|
||||||
if (numRead<0) {
|
if (numRead<0) {
|
||||||
LOG(ALERT) << "cannot read SIP socket.";
|
LOG(ALERT) << "cannot read SIP socket.";
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ void ::ARFCNManager::driveRx()
|
|||||||
{
|
{
|
||||||
// read the message
|
// read the message
|
||||||
char buffer[MAX_UDP_LENGTH];
|
char buffer[MAX_UDP_LENGTH];
|
||||||
int msgLen = mDataSocket.read(buffer, sizeof(buffer));
|
int msgLen = mDataSocket.read(buffer);
|
||||||
if (msgLen<=0) SOCKET_ERROR;
|
if (msgLen<=0) SOCKET_ERROR;
|
||||||
// decode
|
// decode
|
||||||
unsigned char *rp = (unsigned char*)buffer;
|
unsigned char *rp = (unsigned char*)buffer;
|
||||||
|
|||||||
Reference in New Issue
Block a user