mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-15 00:29:02 +00:00
Add includes needed by AVR-gcc, fix compiler warning
This commit is contained in:
parent
52c9f4bde3
commit
7c5eed6bda
@ -35,6 +35,8 @@
|
|||||||
|
|
||||||
#include "lib/memb.h"
|
#include "lib/memb.h"
|
||||||
#include "lib/list.h"
|
#include "lib/list.h"
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "net/neighbor-attr.h"
|
#include "net/neighbor-attr.h"
|
||||||
|
|
||||||
@ -57,7 +59,7 @@ static struct neighbor_addr *
|
|||||||
neighbor_addr_get(const rimeaddr_t *addr)
|
neighbor_addr_get(const rimeaddr_t *addr)
|
||||||
{
|
{
|
||||||
/* check if addr is derived from table, inside memb */
|
/* check if addr is derived from table, inside memb */
|
||||||
if(memb_inmemb(&neighbor_addr_mem, addr)) {
|
if(memb_inmemb(&neighbor_addr_mem, (struct queuebuf *)addr)) {
|
||||||
return (struct neighbor_addr *)
|
return (struct neighbor_addr *)
|
||||||
(((void *)addr) - offsetof(struct neighbor_addr, addr));
|
(((void *)addr) - offsetof(struct neighbor_addr, addr));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user