Changes in uspace/lib/c/generic/rtld/symbol.c [bfdb5af1:8a1fb09] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/rtld/symbol.c
rbfdb5af1 r8a1fb09 38 38 #include <stdlib.h> 39 39 40 #include <elf/elf.h>41 40 #include <rtld/rtld.h> 42 41 #include <rtld/rtld_debug.h> 43 42 #include <rtld/symbol.h> 43 #include <elf.h> 44 44 45 45 /* … … 118 118 module_t *m, *dm; 119 119 elf_symbol_t *sym, *s; 120 li st_t queue;120 link_t queue_head; 121 121 size_t i; 122 122 … … 132 132 133 133 /* Insert root (the program) into the queue and tag it */ 134 list_initialize(&queue );134 list_initialize(&queue_head); 135 135 start->bfs_tag = true; 136 list_append(&start->queue_link, &queue );136 list_append(&start->queue_link, &queue_head); 137 137 138 138 /* If the symbol is found, it will be stored in 'sym' */ … … 140 140 141 141 /* While queue is not empty */ 142 while (!list_empty(&queue )) {142 while (!list_empty(&queue_head)) { 143 143 /* Pop first element from the queue */ 144 m = list_get_instance( list_first(&queue), module_t, queue_link);144 m = list_get_instance(queue_head.next, module_t, queue_link); 145 145 list_remove(&m->queue_link); 146 146 … … 162 162 if (dm->bfs_tag == false) { 163 163 dm->bfs_tag = true; 164 list_append(&dm->queue_link, &queue );164 list_append(&dm->queue_link, &queue_head); 165 165 } 166 166 } … … 168 168 169 169 /* Empty the queue so that we leave it in a clean state */ 170 while (!list_empty(&queue ))171 list_remove( list_first(&queue));170 while (!list_empty(&queue_head)) 171 list_remove(queue_head.next); 172 172 173 173 if (!sym) {
Note:
See TracChangeset
for help on using the changeset viewer.