Commit 7a07a97c authored by Pau Espin Pedrol's avatar Pau Espin Pedrol
Browse files Fix sign of integer variable

gcc 10.1.0 warns/errors about narrowing conversion:
""" In member function ‘void TELNETasp__PortType::TELNETasp__PT::recv_msg_from_client(int&)’: 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 <>
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