mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 12:13:47 +00:00
Fix compile of Axel Lin's patch
This commit is contained in:
parent
6b4cc984ad
commit
d5cdb91611
@ -421,10 +421,10 @@ pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_cust
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (payload_mem != NULL) {
|
if (payload_mem != NULL) {
|
||||||
pbuf_init_alloced_pbuf(p->pbuf, (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset),
|
pbuf_init_alloced_pbuf(&p->pbuf, (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset),
|
||||||
length, length, type, PBUF_FLAG_IS_CUSTOM);
|
length, length, type, PBUF_FLAG_IS_CUSTOM);
|
||||||
} else {
|
} else {
|
||||||
pbuf_init_alloced_pbuf(p->pbuf, NULL, length, length, type, PBUF_FLAG_IS_CUSTOM);
|
pbuf_init_alloced_pbuf(&p->pbuf, NULL, length, length, type, PBUF_FLAG_IS_CUSTOM);
|
||||||
}
|
}
|
||||||
return &p->pbuf;
|
return &p->pbuf;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user