Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    rfeeac0d r4e00f87  
    259259        tmpfs_node_t *parentp = TMPFS_NODE(pfn);
    260260
    261         list_foreach(parentp->cs_list, link, tmpfs_dentry_t, dentryp) {
     261        list_foreach(parentp->cs_list, lnk) {
     262                tmpfs_dentry_t *dentryp;
     263                dentryp = list_get_instance(lnk, tmpfs_dentry_t, link);
    262264                if (!str_cmp(dentryp->name, component)) {
    263265                        *rfn = FS_NODE(dentryp->node);
     
    363365
    364366        /* Check for duplicit entries. */
    365         list_foreach(parentp->cs_list, link, tmpfs_dentry_t, dp) {
    366                 if (!str_cmp(dp->name, nm))
     367        list_foreach(parentp->cs_list, lnk) {
     368                dentryp = list_get_instance(lnk, tmpfs_dentry_t, link);
     369                if (!str_cmp(dentryp->name, nm))
    367370                        return EEXIST;
    368371        }
     
    397400        if (!parentp)
    398401                return EBUSY;
    399 
    400         list_foreach(parentp->cs_list, link, tmpfs_dentry_t, dp) {
    401                 if (!str_cmp(dp->name, nm)) {
    402                         dentryp = dp;
     402       
     403        list_foreach(parentp->cs_list, lnk) {
     404                dentryp = list_get_instance(lnk, tmpfs_dentry_t, link);
     405                if (!str_cmp(dentryp->name, nm)) {
    403406                        childp = dentryp->node;
    404407                        assert(FS_NODE(childp) == cfn);
Note: See TracChangeset for help on using the changeset viewer.