change TCP port datatype from int to uint16_t
because int doesn't match the range add range check in every TCP binary
This commit is contained in:
@ -38,7 +38,7 @@ mbus_tcp_connect(mbus_handle *handle)
|
||||
struct sockaddr_in s;
|
||||
struct timeval time_out;
|
||||
mbus_tcp_data *tcp_data;
|
||||
int port;
|
||||
uint16_t port;
|
||||
|
||||
if (handle == NULL)
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user