From d5cdb916113297729c60f2c8fd7f1863c28232dc Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Wed, 14 Jun 2017 12:30:55 +0200 Subject: [PATCH] Fix compile of Axel Lin's patch --- src/core/pbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index f0461f5f..0964e563 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -421,10 +421,10 @@ pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_cust } 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); } 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; }