net/utils: Use the right data-type

Use size_t instead of int to avoid compiler warnings.

Change-Id: I86f804010a7bd0387299648f8c2c0f880f19f580
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
This commit is contained in:
Flavio Santes 2016-12-20 13:18:16 -06:00 committed by Anas Nashif
commit 17a589a486

View file

@ -245,7 +245,7 @@ int net_addr_pton(sa_family_t family, const char *src,
{
if (family == AF_INET) {
struct in_addr *addr = (struct in_addr *)dst;
int i, len;
size_t i, len;
len = strlen(src);
for (i = 0; i < len; i++) {