diff --git a/net/mld/mld_timer.c b/net/mld/mld_timer.c index da8f830010..9b98165ffa 100644 --- a/net/mld/mld_timer.c +++ b/net/mld/mld_timer.c @@ -115,7 +115,7 @@ static void mld_gendog_work(FAR void *arg) * index. */ - ifindex = (int)arg; + ifindex = (intptr_t)arg; DEBUGASSERT(ifindex > 0); net_lock(); @@ -234,7 +234,7 @@ static void mld_v1dog_work(FAR void *arg) * index. */ - ifindex = (int)arg; + ifindex = (intptr_t)arg; DEBUGASSERT(ifindex > 0); net_lock(); diff --git a/net/route/net_del_ramroute.c b/net/route/net_del_ramroute.c index f50fcf882c..a6b334f879 100644 --- a/net/route/net_del_ramroute.c +++ b/net/route/net_del_ramroute.c @@ -90,7 +90,7 @@ static int net_match_ipv4(FAR struct net_route_ipv4_s *route, FAR void *arg) net_ipv4_dumproute("Comparing", route); ninfo("With:\n"); - ninfo(" target=%08lx netmask=%08lx\n", + ninfo(" target=%08" PRIu32 " netmask=%08" PRIu32 "\n", HTONL(match->target), HTONL(match->netmask)); if (net_ipv4addr_maskcmp(route->target, match->target, match->netmask) &&