pbuf_copy: try to fix GCC const warning

This commit is contained in:
goldsimon 2016-10-11 09:52:44 +02:00
parent d5bfec2e52
commit 6edde498e3

View File

@ -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) &&