mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 00:15:16 +00:00
Fix typo (MEMP_POOL_START/END to FIRST/LAST)
This commit is contained in:
parent
f07c1cf874
commit
472407c719
@ -72,7 +72,7 @@ mem_malloc(mem_size_t size)
|
||||
struct mem_helper *element;
|
||||
memp_t poolnr;
|
||||
|
||||
for (poolnr = MEMP_POOL_START; poolnr <= MEMP_POOL_END; poolnr++) {
|
||||
for (poolnr = MEMP_POOL_FIRST; poolnr <= MEMP_POOL_LAST; poolnr++) {
|
||||
/* is this pool big enough to hold an element of the required size
|
||||
plus a struct mem_helper that saves the pool this element came from? */
|
||||
if ((size + sizeof(struct mem_helper)) <= memp_sizes[poolnr]) {
|
||||
|
Loading…
Reference in New Issue
Block a user