packetbuf: Removed commented code
This commit is contained in:
parent
d478c0f7f1
commit
a1b91d8b59
|
@ -243,7 +243,6 @@ packetbuf_attr_copyfrom(struct packetbuf_attr *attrs,
|
||||||
int
|
int
|
||||||
packetbuf_set_attr(uint8_t type, const packetbuf_attr_t val)
|
packetbuf_set_attr(uint8_t type, const packetbuf_attr_t val)
|
||||||
{
|
{
|
||||||
/* packetbuf_attrs[type].type = type; */
|
|
||||||
packetbuf_attrs[type].val = val;
|
packetbuf_attrs[type].val = val;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -257,7 +256,6 @@ packetbuf_attr(uint8_t type)
|
||||||
int
|
int
|
||||||
packetbuf_set_addr(uint8_t type, const linkaddr_t *addr)
|
packetbuf_set_addr(uint8_t type, const linkaddr_t *addr)
|
||||||
{
|
{
|
||||||
/* packetbuf_addrs[type - PACKETBUF_ADDR_FIRST].type = type; */
|
|
||||||
linkaddr_copy(&packetbuf_addrs[type - PACKETBUF_ADDR_FIRST].addr, addr);
|
linkaddr_copy(&packetbuf_addrs[type - PACKETBUF_ADDR_FIRST].addr, addr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -253,11 +253,9 @@ int packetbuf_hdrreduce(int size);
|
||||||
typedef uint16_t packetbuf_attr_t;
|
typedef uint16_t packetbuf_attr_t;
|
||||||
|
|
||||||
struct packetbuf_attr {
|
struct packetbuf_attr {
|
||||||
/* uint8_t type; */
|
|
||||||
packetbuf_attr_t val;
|
packetbuf_attr_t val;
|
||||||
};
|
};
|
||||||
struct packetbuf_addr {
|
struct packetbuf_addr {
|
||||||
/* uint8_t type; */
|
|
||||||
linkaddr_t addr;
|
linkaddr_t addr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -380,7 +378,6 @@ static const linkaddr_t *packetbuf_addr(uint8_t type);
|
||||||
static inline int
|
static inline int
|
||||||
packetbuf_set_attr(uint8_t type, const packetbuf_attr_t val)
|
packetbuf_set_attr(uint8_t type, const packetbuf_attr_t val)
|
||||||
{
|
{
|
||||||
/* packetbuf_attrs[type].type = type; */
|
|
||||||
packetbuf_attrs[type].val = val;
|
packetbuf_attrs[type].val = val;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -393,7 +390,6 @@ packetbuf_attr(uint8_t type)
|
||||||
static inline int
|
static inline int
|
||||||
packetbuf_set_addr(uint8_t type, const linkaddr_t *addr)
|
packetbuf_set_addr(uint8_t type, const linkaddr_t *addr)
|
||||||
{
|
{
|
||||||
/* packetbuf_addrs[type - PACKETBUF_ADDR_FIRST].type = type; */
|
|
||||||
linkaddr_copy(&packetbuf_addrs[type - PACKETBUF_ADDR_FIRST].addr, addr);
|
linkaddr_copy(&packetbuf_addrs[type - PACKETBUF_ADDR_FIRST].addr, addr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue