Added const to constant parameters (rime addresses)
This commit is contained in:
parent
a625d80259
commit
73fdf05940
|
@ -33,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: mesh.c,v 1.16 2009/03/23 16:22:02 adamdunkels Exp $
|
||||
* $Id: mesh.c,v 1.17 2009/03/24 07:15:04 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -147,7 +147,7 @@ mesh_close(struct mesh_conn *c)
|
|||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
mesh_send(struct mesh_conn *c, rimeaddr_t *to)
|
||||
mesh_send(struct mesh_conn *c, const rimeaddr_t *to)
|
||||
{
|
||||
int could_send;
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: mesh.h,v 1.14 2009/03/23 16:22:02 adamdunkels Exp $
|
||||
* $Id: mesh.h,v 1.15 2009/03/24 07:15:04 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -132,7 +132,7 @@ void mesh_close(struct mesh_conn *c);
|
|||
* must have previously been set up with mesh_open().
|
||||
*
|
||||
*/
|
||||
int mesh_send(struct mesh_conn *c, rimeaddr_t *dest);
|
||||
int mesh_send(struct mesh_conn *c, const rimeaddr_t *dest);
|
||||
|
||||
#endif /* __MESH_H__ */
|
||||
/** @} */
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: multihop.c,v 1.3 2009/03/23 16:20:37 adamdunkels Exp $
|
||||
* $Id: multihop.c,v 1.4 2009/03/24 07:15:04 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -119,7 +119,7 @@ multihop_close(struct multihop_conn *c)
|
|||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
multihop_send(struct multihop_conn *c, rimeaddr_t *to)
|
||||
multihop_send(struct multihop_conn *c, const rimeaddr_t *to)
|
||||
{
|
||||
rimeaddr_t *nexthop;
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: multihop.h,v 1.5 2009/03/23 16:20:37 adamdunkels Exp $
|
||||
* $Id: multihop.h,v 1.6 2009/03/24 07:15:04 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -103,7 +103,7 @@ struct multihop_conn {
|
|||
void multihop_open(struct multihop_conn *c, uint16_t channel,
|
||||
const struct multihop_callbacks *u);
|
||||
void multihop_close(struct multihop_conn *c);
|
||||
int multihop_send(struct multihop_conn *c, rimeaddr_t *to);
|
||||
int multihop_send(struct multihop_conn *c, const rimeaddr_t *to);
|
||||
|
||||
#endif /* __MULTIHOP_H__ */
|
||||
/** @} */
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: route-discovery.c,v 1.14 2009/03/12 21:58:21 adamdunkels Exp $
|
||||
* $Id: route-discovery.c,v 1.15 2009/03/24 07:15:04 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -78,7 +78,7 @@ struct rrep_hdr {
|
|||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
send_rreq(struct route_discovery_conn *c, rimeaddr_t *dest)
|
||||
send_rreq(struct route_discovery_conn *c, const rimeaddr_t *dest)
|
||||
{
|
||||
struct route_msg *msg;
|
||||
|
||||
|
@ -253,7 +253,7 @@ timeout_handler(void *ptr)
|
|||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
route_discovery_discover(struct route_discovery_conn *c, rimeaddr_t *addr,
|
||||
route_discovery_discover(struct route_discovery_conn *c, const rimeaddr_t *addr,
|
||||
clock_time_t timeout)
|
||||
{
|
||||
PRINTF("route_discovery_send: sending route request\n");
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: route-discovery.h,v 1.7 2008/07/03 22:02:10 adamdunkels Exp $
|
||||
* $Id: route-discovery.h,v 1.8 2009/03/24 07:15:04 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -83,7 +83,7 @@ struct route_discovery_conn {
|
|||
void route_discovery_open(struct route_discovery_conn *c, clock_time_t time,
|
||||
uint16_t channels,
|
||||
const struct route_discovery_callbacks *callbacks);
|
||||
void route_discovery_discover(struct route_discovery_conn *c, rimeaddr_t *dest,
|
||||
void route_discovery_discover(struct route_discovery_conn *c, const rimeaddr_t *dest,
|
||||
clock_time_t timeout);
|
||||
|
||||
void route_discovery_close(struct route_discovery_conn *c);
|
||||
|
|
Loading…
Reference in a new issue