Transceiver.cpp: use a define for the MAX_PACKET_LENGTH

No need to keep this value on stack.

Change-Id: If9ffb03b9e7b642f45732ba5938977bca271f1c7
This commit is contained in:
Vadim Yanitskiy 2018-03-09 02:45:07 +07:00 committed by Harald Welte
parent 8fbbd656c7
commit bd0efb0bea
1 changed files with 2 additions and 2 deletions

View File

@ -657,10 +657,10 @@ void Transceiver::reset()
}
#define MAX_PACKET_LENGTH 100
void Transceiver::driveControl(size_t chan)
{
int MAX_PACKET_LENGTH = 100;
// check control socket
char buffer[MAX_PACKET_LENGTH];
int msgLen = -1;