mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
memp: Fix build error when LWIP_HOOK_MEMP_AVAILABLE is defined
Fix below build error. ../../../../../lwip/src/core/memp.c: In function ‘memp_free’: ../../../../../lwip/src/core/memp.c:490:31: error: request for member ‘tab’ in something not a structure or union old_first = memp_pools[type].tab; ^ ../../Common.mk:94: recipe for target 'memp.o' failed make: *** [memp.o] Error 1 Fixes: de9054cb7a70 ("memp: cleaned up MEMP_MEM_MALLOC") Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
a8c8e08984
commit
ef31afb921
@ -487,7 +487,7 @@ memp_free(memp_t type, void *mem)
|
||||
#endif /* MEMP_OVERFLOW_CHECK >= 2 */
|
||||
|
||||
#ifdef LWIP_HOOK_MEMP_AVAILABLE
|
||||
old_first = memp_pools[type].tab;
|
||||
old_first = *memp_pools[type]->tab;
|
||||
#endif
|
||||
|
||||
do_memp_free_pool(memp_pools[type], mem);
|
||||
|
Loading…
x
Reference in New Issue
Block a user