mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 05:24:37 +08:00
IPv6: Fix compile error of ip6_frag.c
Fix below compile error: ../../../../lwip/src/core/ipv6/ip6_frag.c: In function ‘ip6_reass’: ../../../../lwip/src/core/ipv6/ip6_frag.c:533:20: error: declaration of ‘next_pbuf’ shadows a previous local [-Werror=shadow] struct pbuf* next_pbuf = iprh->next_pbuf; ^~~~~~~~~ ../../../../lwip/src/core/ipv6/ip6_frag.c:272:20: note: shadowed declaration is here struct pbuf *q, *next_pbuf; ^~~~~~~~~ cc1: all warnings being treated as errors ../Common.mk:93: recipe for target 'ip6_frag.o' failed make: *** [ip6_frag.o] Error 1 Fixes: 7cedf7ae7133 ("IPv6: fragment reassembly fixes") Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
9713baea55
commit
2c3538cb8f
@ -530,7 +530,7 @@ ip6_reass(struct pbuf *p)
|
||||
/* chain together the pbufs contained within the ip6_reassdata list. */
|
||||
iprh = (struct ip6_reass_helper*) ipr->p->payload;
|
||||
while (iprh != NULL) {
|
||||
struct pbuf* next_pbuf = iprh->next_pbuf;
|
||||
next_pbuf = iprh->next_pbuf;
|
||||
if (next_pbuf != NULL) {
|
||||
/* Save next helper struct (will be hidden in next step). */
|
||||
iprh_tmp = (struct ip6_reass_helper*)next_pbuf->payload;
|
||||
|
Loading…
x
Reference in New Issue
Block a user