From cbc076461371fca57749191fb323cf75b43d9544 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 9 Oct 2008 15:34:07 +0200 Subject: directory: added inline wrappers for accessing children Some tiny utilities... wrappers like these may become helpful when we introduce locking. --- src/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/directory.c') diff --git a/src/directory.c b/src/directory.c index 3a5e5955d..e63310026 100644 --- a/src/directory.c +++ b/src/directory.c @@ -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; -- cgit v1.2.3