Merge pull request #1113 from oliverschmidt/master

Made first uip_nameserver_update() parameter const.
This commit is contained in:
Oliver Schmidt 2015-06-14 17:44:20 +02:00
commit 1d0a171e45
2 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ typedef struct uip_nameserver_record {
#if UIP_NAMESERVER_POOL_SIZE > 1 #if UIP_NAMESERVER_POOL_SIZE > 1
/** \brief Initialization flag */ /** \brief Initialization flag */
static uint8_t initialized = 0; static uint8_t initialized = 0;
#endif #endif /* UIP_NAMESERVER_POOL_SIZE > 1 */
/** \name List and memory block /** \name List and memory block
* @{ * @{
@ -92,7 +92,7 @@ init(void)
#endif /* UIP_NAMESERVER_POOL_SIZE > 1 */ #endif /* UIP_NAMESERVER_POOL_SIZE > 1 */
/*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*/
void 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 #if UIP_NAMESERVER_POOL_SIZE > 1
register uip_nameserver_record *e; register uip_nameserver_record *e;

View file

@ -74,7 +74,7 @@
* considered to remove an entry. Maximum is 0xFFFFFFFF which * considered to remove an entry. Maximum is 0xFFFFFFFF which
* is considered infinite. * 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 * \brief Get a Nameserver ip address given in RA