mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 17:43:39 +08:00
pbuf_free: Use correct type LWIP_PBUF_REF_T for local variable
This commit is contained in:
@@ -743,7 +743,7 @@ pbuf_free(struct pbuf *p)
|
|||||||
/* de-allocate all consecutive pbufs from the head of the chain that
|
/* de-allocate all consecutive pbufs from the head of the chain that
|
||||||
* obtain a zero reference count after decrementing*/
|
* obtain a zero reference count after decrementing*/
|
||||||
while (p != NULL) {
|
while (p != NULL) {
|
||||||
u16_t ref;
|
LWIP_PBUF_REF_T ref;
|
||||||
SYS_ARCH_DECL_PROTECT(old_level);
|
SYS_ARCH_DECL_PROTECT(old_level);
|
||||||
/* Since decrementing ref cannot be guaranteed to be a single machine operation
|
/* 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
|
* we must protect it. We put the new ref into a local variable to prevent
|
||||||
|
|||||||
Reference in New Issue
Block a user