Changes in uspace/lib/graph/graph.c [feeac0d:6d5e378] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/graph/graph.c
rfeeac0d r6d5e378 165 165 166 166 fibril_mutex_lock(&visualizer_list_mtx); 167 list_foreach(visualizer_list, link, visualizer_t, vcur) { 168 if (vcur->reg_svc_handle == handle) { 169 vs = vcur; 167 list_foreach(visualizer_list, link) { 168 visualizer_t *cur = list_get_instance(link, visualizer_t, link); 169 if (cur->reg_svc_handle == handle) { 170 vs = cur; 170 171 break; 171 172 } … … 181 182 182 183 fibril_mutex_lock(&renderer_list_mtx); 183 list_foreach(renderer_list, link, renderer_t, rcur) { 184 if (rcur->reg_svc_handle == handle) { 185 rnd = rcur; 184 list_foreach(renderer_list, link) { 185 renderer_t *cur = list_get_instance(link, renderer_t, link); 186 if (cur->reg_svc_handle == handle) { 187 rnd = cur; 186 188 break; 187 189 } … … 320 322 fibril_mutex_lock(&vs->mode_mtx); 321 323 vslmode_list_element_t *mode_elem = NULL; 322 list_foreach(vs->modes, link, vslmode_list_element_t, cur) { 324 list_foreach(vs->modes, link) { 325 vslmode_list_element_t *cur = list_get_instance(link, vslmode_list_element_t, link); 323 326 if (cur->mode.index == vs->def_mode_idx) { 324 327 mode_elem = cur; … … 379 382 fibril_mutex_lock(&vs->mode_mtx); 380 383 vslmode_list_element_t *mode_elem = NULL; 381 list_foreach(vs->modes, link, vslmode_list_element_t, cur) { 384 list_foreach(vs->modes, link) { 385 vslmode_list_element_t *cur = list_get_instance(link, vslmode_list_element_t, link); 382 386 if (cur->mode.index == mode_idx) { 383 387 mode_elem = cur; … … 421 425 fibril_mutex_lock(&vs->mode_mtx); 422 426 vslmode_list_element_t *mode_elem = NULL; 423 list_foreach(vs->modes, link, vslmode_list_element_t, cur) { 427 list_foreach(vs->modes, link) { 428 vslmode_list_element_t *cur = list_get_instance(link, vslmode_list_element_t, link); 424 429 if (cur->mode.index == mode_idx) { 425 430 mode_elem = cur;
Note:
See TracChangeset
for help on using the changeset viewer.