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:
parent
9216e6c47d
commit
17a589a486
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ int net_addr_pton(sa_family_t family, const char *src,
|
||||||
{
|
{
|
||||||
if (family == AF_INET) {
|
if (family == AF_INET) {
|
||||||
struct in_addr *addr = (struct in_addr *)dst;
|
struct in_addr *addr = (struct in_addr *)dst;
|
||||||
int i, len;
|
size_t i, len;
|
||||||
|
|
||||||
len = strlen(src);
|
len = strlen(src);
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue