diff --git a/cpu/native/include/tap.h b/cpu/native/include/tap.h index 9a20295caf..64f190a2fd 100644 --- a/cpu/native/include/tap.h +++ b/cpu/native/include/tap.h @@ -44,7 +44,7 @@ struct nativenet_header { struct nativenet_packet { struct nativenet_header nn_header; - unsigned char data[ETHERMTU - sizeof(struct nativenet_header)]; + uint8_t data[ETHERMTU - sizeof(struct nativenet_header)]; } __attribute__((packed)); union eth_frame { diff --git a/cpu/native/net/interface.c b/cpu/native/net/interface.c index a0fedc8845..2ba0c9f9e4 100644 --- a/cpu/native/net/interface.c +++ b/cpu/native/net/interface.c @@ -160,7 +160,7 @@ void do_cb(int event) } void _nativenet_handle_packet(radio_packet_t *packet) -{ +{ radio_address_t dst_addr = packet->dst; /* address filter / monitor mode */