Changes in uspace/lib/fs/libfs.c [feeac0d:2d884ab] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fs/libfs.c

    rfeeac0d r2d884ab  
    882882
    883883        fibril_mutex_lock(&instances_mutex);
    884         list_foreach(instances_list, link, fs_instance_t, cur) {
     884        list_foreach(instances_list, link) {
     885                fs_instance_t *cur = list_get_instance(link, fs_instance_t,
     886                    link);
     887
    885888                if (cur->service_id == service_id) {
    886889                        fibril_mutex_unlock(&instances_mutex);
     
    905908{
    906909        fibril_mutex_lock(&instances_mutex);
    907         list_foreach(instances_list, link, fs_instance_t, inst) {
     910        list_foreach(instances_list, link) {
     911                fs_instance_t *inst = list_get_instance(link, fs_instance_t,
     912                    link);
     913
    908914                if (inst->service_id == service_id) {
    909915                        *idp = inst->data;
     
    919925{
    920926        fibril_mutex_lock(&instances_mutex);
    921         list_foreach(instances_list, link, fs_instance_t, inst) {
     927        list_foreach(instances_list, link) {
     928                fs_instance_t *inst = list_get_instance(link, fs_instance_t,
     929                    link);
     930
    922931                if (inst->service_id == service_id) {
    923932                        list_remove(&inst->link);
Note: See TracChangeset for help on using the changeset viewer.