mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-03-11 23:10:44 +00:00
Merge pull request #797 from gebart/rpl-border-router-warnings
examples/rpl-border-router: Fix two minor warnings.
This commit is contained in:
commit
4cc1762851
@ -143,7 +143,6 @@ ipaddr_add(const uip_ipaddr_t *addr)
|
||||
static
|
||||
PT_THREAD(generate_routes(struct httpd_state *s))
|
||||
{
|
||||
static int i;
|
||||
static uip_ds6_route_t *r;
|
||||
static uip_ds6_nbr_t *nbr;
|
||||
#if BUF_USES_STACK
|
||||
@ -247,7 +246,7 @@ PT_THREAD(generate_routes(struct httpd_state *s))
|
||||
ADD("/%u (via ", r->length);
|
||||
ipaddr_add(uip_ds6_route_nexthop(r));
|
||||
if(1 || (r->state.lifetime < 600)) {
|
||||
ADD(") %lus\n", r->state.lifetime);
|
||||
ADD(") %lus\n", (unsigned long)r->state.lifetime);
|
||||
} else {
|
||||
ADD(")\n");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user