diff --git a/core/net/rime/mesh.c b/core/net/rime/mesh.c index be04e2b77..8cf15d54c 100644 --- a/core/net/rime/mesh.c +++ b/core/net/rime/mesh.c @@ -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; diff --git a/core/net/rime/mesh.h b/core/net/rime/mesh.h index aac700a60..26e8c7b1f 100644 --- a/core/net/rime/mesh.h +++ b/core/net/rime/mesh.h @@ -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__ */ /** @} */ diff --git a/core/net/rime/multihop.c b/core/net/rime/multihop.c index a8eded68d..35b2e5f00 100644 --- a/core/net/rime/multihop.c +++ b/core/net/rime/multihop.c @@ -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; diff --git a/core/net/rime/multihop.h b/core/net/rime/multihop.h index 203751ca4..23acb41fb 100644 --- a/core/net/rime/multihop.h +++ b/core/net/rime/multihop.h @@ -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__ */ /** @} */ diff --git a/core/net/rime/route-discovery.c b/core/net/rime/route-discovery.c index f81885652..8ff185694 100644 --- a/core/net/rime/route-discovery.c +++ b/core/net/rime/route-discovery.c @@ -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"); diff --git a/core/net/rime/route-discovery.h b/core/net/rime/route-discovery.h index e34b21917..bb790b0a8 100644 --- a/core/net/rime/route-discovery.h +++ b/core/net/rime/route-discovery.h @@ -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);