mirror of https://github.com/ARMmbed/mbed-os.git
fixed warnings: comparison of integer expressions of different signedness
parent
08ef04d027
commit
fcb81d3015
|
|
@ -107,7 +107,7 @@ void CellularContext::validate_ip_address()
|
||||||
CellularContext::pdp_type_t CellularContext::string_to_pdp_type(const char *pdp_type_str)
|
CellularContext::pdp_type_t CellularContext::string_to_pdp_type(const char *pdp_type_str)
|
||||||
{
|
{
|
||||||
pdp_type_t pdp_type = DEFAULT_PDP_TYPE;
|
pdp_type_t pdp_type = DEFAULT_PDP_TYPE;
|
||||||
int len = strlen(pdp_type_str);
|
size_t len = strlen(pdp_type_str);
|
||||||
|
|
||||||
if (len == 6 && memcmp(pdp_type_str, "IPV4V6", len) == 0) {
|
if (len == 6 && memcmp(pdp_type_str, "IPV4V6", len) == 0) {
|
||||||
pdp_type = IPV4V6_PDP_TYPE;
|
pdp_type = IPV4V6_PDP_TYPE;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue