mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
Fix shadowing warning in lowpan6.c - found by Erik Ekman's Travis CI
https://travis-ci.org/yarrick/lwip-merged
This commit is contained in:
parent
9a4d7b9956
commit
799fe7a5ba
@ -628,12 +628,12 @@ lowpan6_frag(struct netif *netif, struct pbuf *p, const struct ieee_802154_addr
|
||||
}
|
||||
|
||||
err_t
|
||||
lowpan6_set_context(u8_t index, const ip6_addr_t * context)
|
||||
lowpan6_set_context(u8_t idx, const ip6_addr_t * context)
|
||||
{
|
||||
if (index > LWIP_6LOWPAN_NUM_CONTEXTS)
|
||||
if (idx > LWIP_6LOWPAN_NUM_CONTEXTS)
|
||||
return ERR_ARG;
|
||||
|
||||
ip6_addr_set(&lowpan6_context[index], context);
|
||||
ip6_addr_set(&lowpan6_context[idx], context);
|
||||
|
||||
return ERR_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user