mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 21:14:09 +00:00
pbuf_free: Use correct type LWIP_PBUF_REF_T for local variable
This commit is contained in:
parent
0f6d8ccd90
commit
2cf3bbddd4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user