Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/block/block.c

    r4e00f87 rb7adc22  
    3737 */
    3838
    39 #include "../../srv/vfs/vfs.h"
    4039#include <ipc/loc.h>
    4140#include <ipc/services.h>
     
    9392        fibril_mutex_lock(&dcl_lock);
    9493       
    95         list_foreach(dcl, cur) {
    96                 devcon_t *devcon = list_get_instance(cur, devcon_t, link);
     94        list_foreach(dcl, link, devcon_t, devcon) {
    9795                if (devcon->service_id == service_id) {
    9896                        fibril_mutex_unlock(&dcl_lock);
     
    124122       
    125123        fibril_mutex_lock(&dcl_lock);
    126         list_foreach(dcl, cur) {
    127                 devcon_t *d = list_get_instance(cur, devcon_t, link);
     124        list_foreach(dcl, link, devcon_t, d) {
    128125                if (d->service_id == service_id) {
    129126                        fibril_mutex_unlock(&dcl_lock);
Note: See TracChangeset for help on using the changeset viewer.