Changeset f1d6866 in mainline for uspace/lib/c/generic/adt/hash_table.c
- Timestamp:
- 2011-09-18T21:22:59Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dcc44ca1
- Parents:
- 85ff862 (diff), 45a9cf4 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/hash_table.c
r85ff862 rf1d6866 152 152 153 153 if (keys == h->max_keys) { 154 link_t *cur;155 156 154 /* 157 155 * All keys are known, hash_table_find() can be used to find the … … 159 157 */ 160 158 161 cur = hash_table_find(h, key);159 link_t *cur = hash_table_find(h, key); 162 160 if (cur) { 163 161 list_remove(cur); … … 174 172 hash_index_t chain; 175 173 for (chain = 0; chain < h->entries; chain++) { 176 link_t *cur; 177 178 for (cur = h->entry[chain].head.next; cur != &h->entry[chain].head; 174 for (link_t *cur = h->entry[chain].head.next; 175 cur != &h->entry[chain].head; 179 176 cur = cur->next) { 180 177 if (h->op->compare(key, keys, cur)) {
Note:
See TracChangeset
for help on using the changeset viewer.