Changeset feeac0d in mainline for uspace/srv/vfs/vfs_ops.c


Ignore:
Timestamp:
2013-09-10T16:32:35Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4982d87
Parents:
e8d6ce2
Message:

Simplify use of list_foreach.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_ops.c

    re8d6ce2 rfeeac0d  
    548548        int found = 0;
    549549
    550         list_foreach(mtab_list, cur) {
    551                 mtab_ent_t *mtab_ent = list_get_instance(cur, mtab_ent_t,
    552                     link);
    553 
     550        list_foreach(mtab_list, link, mtab_ent_t, mtab_ent) {
    554551                if (str_cmp(mtab_ent->mp, mp) == 0) {
    555552                        list_remove(&mtab_ent->link);
     
    13711368        async_answer_1(callid, EOK, mtab_size);
    13721369
    1373         list_foreach(mtab_list, cur) {
    1374                 mtab_ent_t *mtab_ent = list_get_instance(cur, mtab_ent_t,
    1375                     link);
    1376 
     1370        list_foreach(mtab_list, link, mtab_ent_t, mtab_ent) {
    13771371                rc = ENOTSUP;
    13781372
Note: See TracChangeset for help on using the changeset viewer.