aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-09 15:34:07 +0200
committerEric Wong <normalperson@yhbt.net>2008-10-11 19:21:49 -0700
commit4a13e19cebb8d72db6e2db9ffb9f9dbd7194ede9 (patch)
treee6b44e7f6c3bc4e3d30f3b88739dfb4f37ee2a28 /src/directory.c
parentf2052e7e2ffb5b8ecd15d96a766b5a162a39b2af (diff)
downloadmpd-4a13e19cebb8d72db6e2db9ffb9f9dbd7194ede9.tar.gz
mpd-4a13e19cebb8d72db6e2db9ffb9f9dbd7194ede9.tar.xz
mpd-4a13e19cebb8d72db6e2db9ffb9f9dbd7194ede9.zip
directory: added inline wrappers for accessing children
Some tiny utilities... wrappers like these may become helpful when we introduce locking.
Diffstat (limited to '')
-rw-r--r--src/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.c b/src/directory.c
index 305cd5fe3..273515b91 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -79,7 +79,7 @@ directory_get_subdir(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;