Changes in uspace/lib/c/generic/rtld/module.c [4b63316:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/rtld/module.c
r4b63316 r9d58539 93 93 module_t *module_find(const char *name) 94 94 { 95 module_t *m; 95 96 const char *p, *soname; 96 97 … … 106 107 107 108 /* Traverse list of all modules. Not extremely fast, but simple */ 108 list_foreach(runtime_env->modules, modules_link, module_t, m) { 109 DPRINTF("m = %p\n", m); 109 list_foreach(runtime_env->modules, cur) { 110 DPRINTF("cur = %p\n", cur); 111 m = list_get_instance(cur, module_t, modules_link); 110 112 if (str_cmp(m->dyn.soname, soname) == 0) { 111 113 return m; /* Found */ … … 243 245 void modules_process_relocs(module_t *start) 244 246 { 245 list_foreach(runtime_env->modules, modules_link, module_t, m) { 247 module_t *m; 248 249 list_foreach(runtime_env->modules, cur) { 250 m = list_get_instance(cur, module_t, modules_link); 251 246 252 /* Skip rtld, since it has already been processed */ 247 253 if (m != &runtime_env->rtld) { … … 255 261 void modules_untag(void) 256 262 { 257 list_foreach(runtime_env->modules, modules_link, module_t, m) { 263 module_t *m; 264 265 list_foreach(runtime_env->modules, cur) { 266 m = list_get_instance(cur, module_t, modules_link); 258 267 m->bfs_tag = false; 259 268 }
Note:
See TracChangeset
for help on using the changeset viewer.