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:
Max Kellermann
2008-10-09 15:34:07 +02:00
parent a5480108f8
commit cbc0764613
3 changed files with 20 additions and 7 deletions

View File

@@ -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;