From f320c9fa1dc2268fbd97ba9cb00140276c0a2e23 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 7 Sep 2008 13:48:37 +0200 Subject: 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. --- src/tagTracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tagTracker.c') diff --git a/src/tagTracker.c b/src/tagTracker.c index d6bef6c77..13fba77c9 100644 --- a/src/tagTracker.c +++ b/src/tagTracker.c @@ -60,7 +60,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); -- cgit v1.2.3