mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
core/net/uip-ds6: Make uip_ds6_maddr_add()
and uip_ds6_maddr_lookup()
const-correct.
This commit is contained in:
parent
1d113f52ad
commit
97e16760c3
@ -592,11 +592,11 @@ uip_ds6_get_global(int8_t state)
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
uip_ds6_maddr_t *
|
||||
uip_ds6_maddr_add(uip_ipaddr_t *ipaddr)
|
||||
uip_ds6_maddr_add(const uip_ipaddr_t *ipaddr)
|
||||
{
|
||||
if(uip_ds6_list_loop
|
||||
((uip_ds6_element_t *)uip_ds6_if.maddr_list, UIP_DS6_MADDR_NB,
|
||||
sizeof(uip_ds6_maddr_t), ipaddr, 128,
|
||||
sizeof(uip_ds6_maddr_t), (void*)ipaddr, 128,
|
||||
(uip_ds6_element_t **)&locmaddr) == FREESPACE) {
|
||||
locmaddr->isused = 1;
|
||||
uip_ipaddr_copy(&locmaddr->ipaddr, ipaddr);
|
||||
@ -617,11 +617,11 @@ uip_ds6_maddr_rm(uip_ds6_maddr_t *maddr)
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
uip_ds6_maddr_t *
|
||||
uip_ds6_maddr_lookup(uip_ipaddr_t *ipaddr)
|
||||
uip_ds6_maddr_lookup(const uip_ipaddr_t *ipaddr)
|
||||
{
|
||||
if(uip_ds6_list_loop
|
||||
((uip_ds6_element_t *)uip_ds6_if.maddr_list, UIP_DS6_MADDR_NB,
|
||||
sizeof(uip_ds6_maddr_t), ipaddr, 128,
|
||||
sizeof(uip_ds6_maddr_t), (void*)ipaddr, 128,
|
||||
(uip_ds6_element_t **)&locmaddr) == FOUND) {
|
||||
return locmaddr;
|
||||
}
|
||||
|
@ -315,9 +315,9 @@ uip_ds6_addr_t *uip_ds6_get_global(int8_t state);
|
||||
|
||||
/** \name Multicast address list basic routines */
|
||||
/** @{ */
|
||||
uip_ds6_maddr_t *uip_ds6_maddr_add(uip_ipaddr_t *ipaddr);
|
||||
uip_ds6_maddr_t *uip_ds6_maddr_add(const uip_ipaddr_t *ipaddr);
|
||||
void uip_ds6_maddr_rm(uip_ds6_maddr_t *maddr);
|
||||
uip_ds6_maddr_t *uip_ds6_maddr_lookup(uip_ipaddr_t *ipaddr);
|
||||
uip_ds6_maddr_t *uip_ds6_maddr_lookup(const uip_ipaddr_t *ipaddr);
|
||||
|
||||
/** @} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user