From 70c4de74f90a58382614ee710c405a7eb4060c88 Mon Sep 17 00:00:00 2001 From: dak664 Date: Fri, 12 Mar 2010 15:23:57 +0000 Subject: [PATCH] Add includes needed by AVR-gcc, fix compiler warning --- core/net/neighbor-attr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/net/neighbor-attr.c b/core/net/neighbor-attr.c index a17d999a..361aabf0 100644 --- a/core/net/neighbor-attr.c +++ b/core/net/neighbor-attr.c @@ -35,6 +35,8 @@ #include "lib/memb.h" #include "lib/list.h" +#include +#include #include "net/neighbor-attr.h" @@ -57,7 +59,7 @@ static struct neighbor_addr * neighbor_addr_get(const rimeaddr_t *addr) { /* 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 *) (((void *)addr) - offsetof(struct neighbor_addr, addr)); } -- 2.11.4.GIT