From fc603fdcc61a17a5b4db1026e4b41d5c9a480f5f Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 5 Feb 2008 20:18:57 +0000 Subject: [PATCH] constness --- core/net/rime/uc.c | 4 ++-- core/net/rime/uc.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/net/rime/uc.c b/core/net/rime/uc.c index bc20e3ba1..7fe0450fb 100644 --- a/core/net/rime/uc.c +++ b/core/net/rime/uc.c @@ -34,7 +34,7 @@ * * This file is part of the Contiki operating system. * - * $Id: uc.c,v 1.11 2007/05/22 20:58:00 adamdunkels Exp $ + * $Id: uc.c,v 1.12 2008/02/05 20:18:57 adamdunkels Exp $ */ /** @@ -96,7 +96,7 @@ uc_close(struct uc_conn *c) } /*---------------------------------------------------------------------------*/ int -uc_send(struct uc_conn *c, rimeaddr_t *receiver) +uc_send(struct uc_conn *c, const rimeaddr_t *receiver) { PRINTF("%d.%d: uc_send to %d.%d\n", rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1], diff --git a/core/net/rime/uc.h b/core/net/rime/uc.h index 832b570a4..b11035baf 100644 --- a/core/net/rime/uc.h +++ b/core/net/rime/uc.h @@ -45,7 +45,7 @@ * * This file is part of the Contiki operating system. * - * $Id: uc.h,v 1.6 2007/03/31 18:31:29 adamdunkels Exp $ + * $Id: uc.h,v 1.7 2008/02/05 20:18:58 adamdunkels Exp $ */ /** @@ -71,11 +71,11 @@ struct uc_conn { const struct uc_callbacks *u; }; -void uc_open(struct uc_conn *c, u16_t channel, +void uc_open(struct uc_conn *c, uint16_t channel, const struct uc_callbacks *u); void uc_close(struct uc_conn *c); -int uc_send(struct uc_conn *c, rimeaddr_t *receiver); +int uc_send(struct uc_conn *c, const rimeaddr_t *receiver); #endif /* __UC_H__ */ /** @} */