Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/mm/common.c

    rfeeac0d r9727b92  
    8484}
    8585
    86 static bool overlap_match(mem_block_t *block, void *addr, size_t size)
    87 {
     86static bool overlap_match(link_t *link, void *addr, size_t size)
     87{
     88        mem_block_t *block = list_get_instance(link, mem_block_t, link);
     89       
    8890        /* Entry block control structure <mbeg, mend) */
    8991        uint8_t *mbeg = (uint8_t *) block;
     
    123125        bool fnd = false;
    124126       
    125         list_foreach(mem_blocks, link, mem_block_t, block) {
    126                 if (overlap_match(block, addr, size)) {
     127        list_foreach(mem_blocks, link) {
     128                if (overlap_match(link, addr, size)) {
    127129                        fnd = true;
    128130                        break;
Note: See TracChangeset for help on using the changeset viewer.