diff options
author | Max Kellermann <max@duempel.org> | 2008-10-09 15:34:07 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-11 19:21:49 -0700 |
commit | 4a13e19cebb8d72db6e2db9ffb9f9dbd7194ede9 (patch) | |
tree | e6b44e7f6c3bc4e3d30f3b88739dfb4f37ee2a28 /src/directory.c | |
parent | f2052e7e2ffb5b8ecd15d96a766b5a162a39b2af (diff) | |
download | mpd-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 'src/directory.c')
-rw-r--r-- | src/directory.c | 2 |
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; |