mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-20 10:35:34 +00:00
Minor style updates
This commit is contained in:
parent
e4c387615e
commit
952e1e4da3
@ -634,7 +634,8 @@ try_next_server(struct namemap *namemapptr)
|
||||
#if VERBOSE_DEBUG
|
||||
printf("server %d\n", namemapptr->server);
|
||||
#endif
|
||||
if(uip_nameserver_get(++namemapptr->server) != NULL) {
|
||||
namemapptr->server++;
|
||||
if(uip_nameserver_get(namemapptr->server) != NULL) {
|
||||
namemapptr->retries = 0;
|
||||
return 1;
|
||||
}
|
||||
|
@ -74,8 +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(uip_ipaddr_t *nameserver, uint32_t lifetime);
|
||||
|
||||
/**
|
||||
* \brief Get a Nameserver ip address given in RA
|
||||
@ -83,22 +82,19 @@ uip_nameserver_update(uip_ipaddr_t *nameserver, uint32_t lifetime);
|
||||
* \param num The number of the nameserver to obtain, starting at 0 and going
|
||||
* up to the pool size.
|
||||
*/
|
||||
uip_ipaddr_t *
|
||||
uip_nameserver_get(uint8_t num);
|
||||
uip_ipaddr_t *uip_nameserver_get(uint8_t num);
|
||||
|
||||
/**
|
||||
* \brief Get next expiration time
|
||||
*
|
||||
* The least expiration time is returned
|
||||
*/
|
||||
uint32_t
|
||||
uip_nameserver_next_expiration(void);
|
||||
uint32_t uip_nameserver_next_expiration(void);
|
||||
|
||||
/**
|
||||
* \brief Get the number of recorded name servers
|
||||
*/
|
||||
uint16_t
|
||||
uip_nameserver_count(void);
|
||||
uint16_t uip_nameserver_count(void);
|
||||
/** @} */
|
||||
|
||||
#endif /* UIP_NAMESERVER_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user