Changes in uspace/srv/fs/tmpfs/tmpfs_ops.c [feeac0d:4e00f87] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_ops.c
rfeeac0d r4e00f87 259 259 tmpfs_node_t *parentp = TMPFS_NODE(pfn); 260 260 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); 262 264 if (!str_cmp(dentryp->name, component)) { 263 265 *rfn = FS_NODE(dentryp->node); … … 363 365 364 366 /* 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)) 367 370 return EEXIST; 368 371 } … … 397 400 if (!parentp) 398 401 return EBUSY; 399 400 list_foreach(parentp->cs_list, l ink, 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)) { 403 406 childp = dentryp->node; 404 407 assert(FS_NODE(childp) == cfn);
Note:
See TracChangeset
for help on using the changeset viewer.