constness

This commit is contained in:
adamdunkels 2008-02-05 20:18:57 +00:00
parent 3d6c1c966b
commit fc603fdcc6
2 changed files with 5 additions and 5 deletions

View File

@ -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],

View File

@ -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__ */
/** @} */