mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08: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
|
/* 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user