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:
@ -29,7 +29,7 @@ extern "C" {
|
||||
typedef struct _mbus_tcp_data
|
||||
{
|
||||
char *host;
|
||||
int port;
|
||||
uint16_t port;
|
||||
} mbus_tcp_data;
|
||||
|
||||
int mbus_tcp_connect(mbus_handle *handle);
|
||||
|
Reference in New Issue
Block a user