Addresses are not const
This commit is contained in:
parent
2647f879c2
commit
baa62e9314
2 changed files with 6 additions and 4 deletions
|
@ -33,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: queuebuf.c,v 1.18 2010/05/02 12:21:34 nifi Exp $
|
||||
* $Id: queuebuf.c,v 1.19 2010/06/14 06:55:26 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -84,6 +84,8 @@ MEMB(refbufmem, struct queuebuf_ref, QUEUEBUF_REF_NUM);
|
|||
#define PRINTF(...)
|
||||
#endif
|
||||
|
||||
#define QUEUEBUF_CONF_STATS 0
|
||||
|
||||
#ifdef QUEUEBUF_CONF_STATS
|
||||
#define QUEUEBUF_STATS QUEUEBUF_CONF_STATS
|
||||
#endif /* QUEUEBUF_CONF_STATS */
|
||||
|
@ -216,7 +218,7 @@ queuebuf_datalen(struct queuebuf *b)
|
|||
return b->len;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
const rimeaddr_t *
|
||||
rimeaddr_t *
|
||||
queuebuf_addr(struct queuebuf *b, uint8_t type)
|
||||
{
|
||||
return &b->addrs[type - PACKETBUF_ADDR_FIRST].addr;
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: queuebuf.h,v 1.7 2010/04/30 07:29:08 adamdunkels Exp $
|
||||
* $Id: queuebuf.h,v 1.8 2010/06/14 06:55:26 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -67,7 +67,7 @@ void queuebuf_to_packetbuf(struct queuebuf *b);
|
|||
void *queuebuf_dataptr(struct queuebuf *b);
|
||||
int queuebuf_datalen(struct queuebuf *b);
|
||||
|
||||
const rimeaddr_t *queuebuf_addr(struct queuebuf *b, uint8_t type);
|
||||
rimeaddr_t *queuebuf_addr(struct queuebuf *b, uint8_t type);
|
||||
|
||||
#endif /* __QUEUEBUF_H__ */
|
||||
|
||||
|
|
Loading…
Reference in a new issue