From 2cf3bbddd42b555b97cdc23132968ee6389c9514 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Thu, 23 Feb 2017 18:08:26 +0100 Subject: [PATCH] pbuf_free: Use correct type LWIP_PBUF_REF_T for local variable --- src/core/pbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index 9f35ec6a..c2a89e37 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -743,7 +743,7 @@ pbuf_free(struct pbuf *p) /* de-allocate all consecutive pbufs from the head of the chain that * obtain a zero reference count after decrementing*/ while (p != NULL) { - u16_t ref; + LWIP_PBUF_REF_T ref; SYS_ARCH_DECL_PROTECT(old_level); /* Since decrementing ref cannot be guaranteed to be a single machine operation * we must protect it. We put the new ref into a local variable to prevent