fixed warnings: comparison of integer expressions of different signedness

pull/13476/head
talorion 2020-08-21 18:31:17 +02:00 committed by Gregor Mayramhof
parent 08ef04d027
commit fcb81d3015
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ void CellularContext::validate_ip_address()
CellularContext::pdp_type_t CellularContext::string_to_pdp_type(const char *pdp_type_str)
{
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) {
pdp_type = IPV4V6_PDP_TYPE;