mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-29 12:14:28 +00:00
pbuf_copy: try to fix GCC const warning
This commit is contained in:
parent
d5bfec2e52
commit
6edde498e3
@ -934,7 +934,7 @@ pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from)
|
|||||||
u16_t offset_to=0, offset_from=0, len;
|
u16_t offset_to=0, offset_from=0, len;
|
||||||
|
|
||||||
LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy(%p, %p)\n",
|
LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy(%p, %p)\n",
|
||||||
(void*)p_to, (void*)p_from));
|
(const void*)p_to, (const void*)p_from));
|
||||||
|
|
||||||
/* is the target big enough to hold the source? */
|
/* is the target big enough to hold the source? */
|
||||||
LWIP_ERROR("pbuf_copy: target not big enough to hold source", ((p_to != NULL) &&
|
LWIP_ERROR("pbuf_copy: target not big enough to hold source", ((p_to != NULL) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user