Changeset 30f1a25 in mainline for uspace/lib/c/generic/adt/hash_table.c
- Timestamp:
- 2018-03-14T18:54:08Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67f11a0
- Parents:
- 963037b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/hash_table.c
r963037b0 r30f1a25 269 269 270 270 /** Find the next item equal to item. */ 271 ht_link_t *hash_table_find_next(const hash_table_t *h, ht_link_t *item) 271 ht_link_t * 272 hash_table_find_next(const hash_table_t *h, ht_link_t *first, ht_link_t *item) 272 273 { 273 274 assert(item); … … 277 278 278 279 /* Traverse the circular list until we reach the starting item again. */ 279 for (link_t *cur = item->link.next; cur != &item->link; cur = cur->next) { 280 for (link_t *cur = item->link.next; cur != &first->link; 281 cur = cur->next) { 280 282 assert(cur); 281 283
Note:
See TracChangeset
for help on using the changeset viewer.