fixed compiler warnings

This commit is contained in:
nifi 2009-12-18 15:26:35 +00:00
parent a03e899c27
commit e032f7ac2c

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: example-runicast.c,v 1.6 2009/10/18 17:52:09 adamdunkels Exp $ * $Id: example-runicast.c,v 1.7 2009/12/18 15:26:35 nifi Exp $
*/ */
/** /**
@ -68,7 +68,7 @@ LIST(history_table);
MEMB(history_mem, struct history_entry, NUM_HISTORY_ENTRIES); MEMB(history_mem, struct history_entry, NUM_HISTORY_ENTRIES);
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static void static void
recv_runicast(struct runicast_conn *c, rimeaddr_t *from, uint8_t seqno) recv_runicast(struct runicast_conn *c, const rimeaddr_t *from, uint8_t seqno)
{ {
/* OPTIONAL: Sender history */ /* OPTIONAL: Sender history */
struct history_entry *e = NULL; struct history_entry *e = NULL;
@ -101,13 +101,13 @@ recv_runicast(struct runicast_conn *c, rimeaddr_t *from, uint8_t seqno)
from->u8[0], from->u8[1], seqno); from->u8[0], from->u8[1], seqno);
} }
static void static void
sent_runicast(struct runicast_conn *c, rimeaddr_t *to, uint8_t retransmissions) sent_runicast(struct runicast_conn *c, const rimeaddr_t *to, uint8_t retransmissions)
{ {
printf("runicast message sent to %d.%d, retransmissions %d\n", printf("runicast message sent to %d.%d, retransmissions %d\n",
to->u8[0], to->u8[1], retransmissions); to->u8[0], to->u8[1], retransmissions);
} }
static void static void
timedout_runicast(struct runicast_conn *c, rimeaddr_t *to, uint8_t retransmissions) timedout_runicast(struct runicast_conn *c, const rimeaddr_t *to, uint8_t retransmissions)
{ {
printf("runicast message timed out when sending to %d.%d, retransmissions %d\n", printf("runicast message timed out when sending to %d.%d, retransmissions %d\n",
to->u8[0], to->u8[1], retransmissions); to->u8[0], to->u8[1], retransmissions);