mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
Addresses are not const
This commit is contained in:
parent
2647f879c2
commit
baa62e9314
@ -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 New Issue
Block a user