Commit 7a07a97c authored by Pau Espin Pedrol's avatar Pau Espin Pedrol
Browse files

TELNETasp_PT.cc: Fix sign of integer variable



gcc 10.1.0 warns/errors about narrowing conversion:
"""
TELNETasp_PT.cc: In member function ‘void TELNETasp__PortType::TELNETasp__PT::recv_msg_from_client(int&)’:
TELNETasp_PT.cc:1659:9: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ [-Wnarrowing]
 1659 |   case -1:{
      |         ^
make[1]: *** [Makefile:180: TELNETasp_PT.o] Error 1
"""
Signed-off-by: Pau Espin Pedrol's avatarPau Espin Pedrol <pespin@sysmocom.de>
parent 96befd3f
......@@ -1650,7 +1650,7 @@ void TELNETasp__PT::reset_configuration()
void TELNETasp__PT::recv_msg_from_client(int &fd){
unsigned char inbuf[BUFFER_SIZE];
unsigned int length;
int length;
log_debug("%s: Receive message from client", port_name);
length = recv(fd, inbuf, BUFFER_SIZE, O_NONBLOCK);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment