Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/adt/hash_table.c

    rb72efe8 r55b77d9  
    147147        ASSERT(keys <= h->max_keys);
    148148       
    149        
    150149        if (keys == h->max_keys) {
    151150                link_t *cur;
    152                
     151       
    153152                /*
    154153                 * All keys are known, hash_table_find() can be used to find the entry.
     
    169168         */
    170169        for (chain = 0; chain < h->entries; chain++) {
    171                 link_t *cur;
    172                 for (cur = h->entry[chain].head.next; cur != &h->entry[chain].head;
    173                     cur = cur->next) {
     170                list_foreach(h->entry[chain], cur) {
    174171                        if (h->op->compare(key, keys, cur)) {
    175172                                link_t *hlp;
Note: See TracChangeset for help on using the changeset viewer.