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:
Dirk Ziegelmeier 2016-02-23 08:58:34 +01:00
parent 9a4d7b9956
commit 799fe7a5ba

View File

@ -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;
}