aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-09 15:34:07 +0200
committerMax Kellermann <max@duempel.org>2008-10-09 15:34:07 +0200
commitcbc076461371fca57749191fb323cf75b43d9544 (patch)
treecbeb77d790debcf46ad4ba7aaabaa3597927a06b /src/directory.c
parenta5480108f8c834a1db3b5c4f30a7dd7e9569776e (diff)
downloadmpd-cbc076461371fca57749191fb323cf75b43d9544.tar.gz
mpd-cbc076461371fca57749191fb323cf75b43d9544.tar.xz
mpd-cbc076461371fca57749191fb323cf75b43d9544.zip
directory: added inline wrappers for accessing children
Some tiny utilities... wrappers like these may become helpful when we introduce locking.
Diffstat (limited to 'src/directory.c')
-rw-r--r--src/directory.c2
1 files changed, 1 insertions, 1 deletions
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;