forked from Imagelibrary/lwip
Minor fix (tabs)
This commit is contained in:
@@ -100,7 +100,7 @@ plug_holes(struct mem *mem)
|
|||||||
|
|
||||||
nmem = (struct mem *)&ram[mem->next];
|
nmem = (struct mem *)&ram[mem->next];
|
||||||
if (mem != nmem && nmem->used == 0 && (u8_t *)nmem != (u8_t *)ram_end) {
|
if (mem != nmem && nmem->used == 0 && (u8_t *)nmem != (u8_t *)ram_end) {
|
||||||
/* if mem->next is unused and not end of ram, combine mem and mem->next */
|
/* if mem->next is unused and not end of ram, combine mem and mem->next */
|
||||||
if (lfree == nmem) {
|
if (lfree == nmem) {
|
||||||
lfree = mem;
|
lfree = mem;
|
||||||
}
|
}
|
||||||
@@ -111,7 +111,7 @@ plug_holes(struct mem *mem)
|
|||||||
/* plug hole backward */
|
/* plug hole backward */
|
||||||
pmem = (struct mem *)&ram[mem->prev];
|
pmem = (struct mem *)&ram[mem->prev];
|
||||||
if (pmem != mem && pmem->used == 0) {
|
if (pmem != mem && pmem->used == 0) {
|
||||||
/* if mem->prev is unused, combine mem and mem->prev */
|
/* if mem->prev is unused, combine mem and mem->prev */
|
||||||
if (lfree == mem) {
|
if (lfree == mem) {
|
||||||
lfree = pmem;
|
lfree = pmem;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user