Made rimeaddr_t pointers const where they should be.

This commit is contained in:
adamdunkels 2009-11-08 19:40:16 +00:00
parent 8c040be133
commit 56218aba3b
32 changed files with 108 additions and 97 deletions

View file

@ -33,7 +33,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: rudolph1.c,v 1.12 2009/03/12 21:58:21 adamdunkels Exp $
* $Id: rudolph1.c,v 1.13 2009/11/08 19:40:18 adamdunkels Exp $
*/
/**
@ -232,7 +232,7 @@ dropped_ipolite(struct ipolite_conn *ipolite)
}
/*---------------------------------------------------------------------------*/
static void
recv_ipolite(struct ipolite_conn *ipolite, rimeaddr_t *from)
recv_ipolite(struct ipolite_conn *ipolite, const rimeaddr_t *from)
{
struct rudolph1_conn *c = (struct rudolph1_conn *)
((char *)ipolite - offsetof(struct rudolph1_conn, ipolite));
@ -295,7 +295,8 @@ send_next_packet(void *ptr)
c->nacks = 0;
}
/*---------------------------------------------------------------------------*/
static const struct ipolite_callbacks ipolite = { recv_ipolite, sent_ipolite, dropped_ipolite };
static const struct ipolite_callbacks ipolite = { recv_ipolite, sent_ipolite,
dropped_ipolite };
static const struct trickle_callbacks trickle = { recv_trickle };
/*---------------------------------------------------------------------------*/
void