directory: added inline wrappers for accessing children
Some tiny utilities... wrappers like these may become helpful when we introduce locking.
This commit is contained in:
@@ -81,7 +81,7 @@ directory_get_directory(struct directory *directory, const char *name)
|
||||
while (1) {
|
||||
if (locate)
|
||||
*locate = '\0';
|
||||
if (!(found = dirvec_find(&cur->children, duplicated)))
|
||||
if (!(found = directory_get_child(cur, duplicated)))
|
||||
break;
|
||||
assert(cur == found->parent);
|
||||
cur = found;
|
||||
|
||||
Reference in New Issue
Block a user