aboutsummaryrefslogtreecommitdiffstats
path: root/src/tagTracker.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:48:37 +0200
committerEric Wong <normalperson@yhbt.net>2008-09-09 01:11:26 -0700
commit7d7b69e576500522a011627d7937e255aa7c16c7 (patch)
treee94ef26cff7f3272707aca3a8da54bb0ea7723d3 /src/tagTracker.c
parentdcc575a3a877e342e895df9fc99108028151cc6a (diff)
downloadmpd-7d7b69e576500522a011627d7937e255aa7c16c7.tar.gz
mpd-7d7b69e576500522a011627d7937e255aa7c16c7.tar.xz
mpd-7d7b69e576500522a011627d7937e255aa7c16c7.zip
directory: don't pass fd to traverseAllIn()
This patch continues the work of the previous patch: don't pass a file descriptor at all to traverseAllIn(). Since this fd was only used to report "directory not found" errors, we can easily move that check to the caller. This is a great relief, since it removes the dependency on a client connection from a lot of enumeration functions.
Diffstat (limited to '')
-rw-r--r--src/tagTracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tagTracker.c b/src/tagTracker.c
index e470f85ea..dd9d56330 100644
--- a/src/tagTracker.c
+++ b/src/tagTracker.c
@@ -61,7 +61,7 @@ int getNumberOfTagItems(int type)
resetVisitedFlagsInTagTracker(type);
- traverseAllIn(-1, NULL, visit_tag_items, NULL, (void*)(size_t)type);
+ traverseAllIn(NULL, visit_tag_items, NULL, (void*)(size_t)type);
ret = (int)num_visited[type];
resetVisitedFlagsInTagTracker(type);