fixed compiler warning

This commit is contained in:
nifi 2007-11-15 13:33:09 +00:00
parent a6d827fa1f
commit c989d425dc

View file

@ -33,7 +33,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: nbh.c,v 1.2 2007/11/15 08:10:42 fros4943 Exp $ * $Id: nbh.c,v 1.3 2007/11/15 13:33:09 nifi Exp $
*/ */
/** /**
@ -52,6 +52,8 @@
#include "dev/radio-sensor.h" #include "dev/radio-sensor.h"
#include "lib/random.h"
#if NETSIM #if NETSIM
#include "ether.h" #include "ether.h"
#endif #endif
@ -101,7 +103,7 @@ adv_packet_received(struct ibc_conn *ibc, rimeaddr_t *from)
{ {
struct nbh_conn *c = (struct nbh_conn *)ibc; struct nbh_conn *c = (struct nbh_conn *)ibc;
struct adv_msg *msg = rimebuf_dataptr(); struct adv_msg *msg = rimebuf_dataptr();
struct neighbor *n; /* struct neighbor *n; */
PRINTF("%d.%d: adv_packet_received from %d.%d with val %d\n", PRINTF("%d.%d: adv_packet_received from %d.%d with val %d\n",
rimeaddr_node_addr.u8[0], rimeaddr_node_addr.u8[1], rimeaddr_node_addr.u8[0], rimeaddr_node_addr.u8[1],