Made constant addresses const

This commit is contained in:
adamdunkels 2009-03-23 16:22:02 +00:00
parent 143bf11548
commit 21e0900d18
4 changed files with 16 additions and 13 deletions

View file

@ -33,7 +33,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: route.c,v 1.12 2008/02/24 22:05:27 adamdunkels Exp $
* $Id: route.c,v 1.13 2009/03/23 16:22:02 adamdunkels Exp $
*/
/**
@ -96,7 +96,7 @@ route_init(void)
}
/*---------------------------------------------------------------------------*/
int
route_add(rimeaddr_t *dest, rimeaddr_t *nexthop,
route_add(const rimeaddr_t *dest, const rimeaddr_t *nexthop,
uint8_t hop_count, uint8_t seqno)
{
struct route_entry *e;
@ -126,7 +126,7 @@ route_add(rimeaddr_t *dest, rimeaddr_t *nexthop,
}
/*---------------------------------------------------------------------------*/
struct route_entry *
route_lookup(rimeaddr_t *dest)
route_lookup(const rimeaddr_t *dest)
{
struct route_entry *e;