Merge pull request #1113 from oliverschmidt/master
Made first uip_nameserver_update() parameter const.
This commit is contained in:
commit
1d0a171e45
|
@ -59,7 +59,7 @@ typedef struct uip_nameserver_record {
|
|||
#if UIP_NAMESERVER_POOL_SIZE > 1
|
||||
/** \brief Initialization flag */
|
||||
static uint8_t initialized = 0;
|
||||
#endif
|
||||
#endif /* UIP_NAMESERVER_POOL_SIZE > 1 */
|
||||
|
||||
/** \name List and memory block
|
||||
* @{
|
||||
|
@ -92,7 +92,7 @@ init(void)
|
|||
#endif /* UIP_NAMESERVER_POOL_SIZE > 1 */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
void
|
||||
uip_nameserver_update(uip_ipaddr_t *nameserver, uint32_t lifetime)
|
||||
uip_nameserver_update(const uip_ipaddr_t *nameserver, uint32_t lifetime)
|
||||
{
|
||||
#if UIP_NAMESERVER_POOL_SIZE > 1
|
||||
register uip_nameserver_record *e;
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
* considered to remove an entry. Maximum is 0xFFFFFFFF which
|
||||
* is considered infinite.
|
||||
*/
|
||||
void uip_nameserver_update(uip_ipaddr_t *nameserver, uint32_t lifetime);
|
||||
void uip_nameserver_update(const uip_ipaddr_t *nameserver, uint32_t lifetime);
|
||||
|
||||
/**
|
||||
* \brief Get a Nameserver ip address given in RA
|
||||
|
|
Loading…
Reference in a new issue