net/icmp: fix build break if enable NET_ALLOC_CONNS
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
676d35f007
commit
0d7f12c489
|
@ -124,7 +124,7 @@ FAR struct icmp_conn_s *icmp_alloc(void)
|
||||||
{
|
{
|
||||||
for (ret = 0; ret < CONFIG_NET_ICMP_NCONNS; ret++)
|
for (ret = 0; ret < CONFIG_NET_ICMP_NCONNS; ret++)
|
||||||
{
|
{
|
||||||
dq_addlast(&conn[ret].node, &g_free_retcmp_connectretons);
|
dq_addlast(&conn[ret].node, &g_free_icmp_connections);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,7 +124,7 @@ FAR struct icmpv6_conn_s *icmpv6_alloc(void)
|
||||||
{
|
{
|
||||||
for (ret = 0; ret < CONFIG_NET_ICMPv6_NCONNS; ret++)
|
for (ret = 0; ret < CONFIG_NET_ICMPv6_NCONNS; ret++)
|
||||||
{
|
{
|
||||||
dq_addlast(&conn[i].node, &g_free_icmpv6_connections);
|
dq_addlast(&conn[ret].node, &g_free_icmpv6_connections);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue