Changeset 99c2c69e in mainline for uspace/app/tester/mm/common.c


Ignore:
Timestamp:
2013-09-13T00:36:30Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
67fbd5e
Parents:
7f84430 (diff), 11d41be5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

mainline changes

File:
1 edited

Legend:

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

    r7f84430 r99c2c69e  
    8484}
    8585
    86 static 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        
     86static bool overlap_match(mem_block_t *block, void *addr, size_t size)
     87{
    9088        /* Entry block control structure <mbeg, mend) */
    9189        uint8_t *mbeg = (uint8_t *) block;
     
    125123        bool fnd = false;
    126124       
    127         list_foreach(mem_blocks, link) {
    128                 if (overlap_match(link, addr, size)) {
     125        list_foreach(mem_blocks, link, mem_block_t, block) {
     126                if (overlap_match(block, addr, size)) {
    129127                        fnd = true;
    130128                        break;
Note: See TracChangeset for help on using the changeset viewer.