jn516x examples: fix compiler warnings to enable -Wall -Werror compilation

This commit is contained in:
Simon Duquennoy 2015-10-20 09:45:27 +02:00
parent c13274c550
commit 1634acf2c4
6 changed files with 17 additions and 23 deletions

View file

@ -101,9 +101,10 @@ PROCESS_THREAD(unicast_test_process, ev, data)
}
if(!runicast_is_transmitting(&runicast)) {
linkaddr_t recv = { 0 };
static char buffer[100] = "hello";
linkaddr_t recv;
memset(&recv, 0, LINKADDR_SIZE);
packetbuf_copyfrom(buffer, sizeof(buffer));
recv.u8[0] = RX_ADDR1;
recv.u8[1] = RX_ADDR2;