pbuf_free: Use correct type LWIP_PBUF_REF_T for local variable

This commit is contained in:
Dirk Ziegelmeier 2017-02-23 18:08:26 +01:00
parent 0f6d8ccd90
commit 2cf3bbddd4

View File

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