summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2008-01-13 19:34:49 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2008-01-13 19:34:49 +0000
commit784112a0756cde8badaeb69b50b6dc08f945116b (patch)
tree9f19aa09b019aa918ac8658da20baa04acc190b7
parent7aedb02fccb98b0a2362046d2694be12b2b0ede7 (diff)
downloadrockbox-784112a0756cde8badaeb69b50b6dc08f945116b.tar.gz
rockbox-784112a0756cde8badaeb69b50b6dc08f945116b.zip
Fixed the red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16083 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tagcache.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 044fcab6e7..089161abab 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -299,6 +299,7 @@ bool tagcache_is_sorted_tag(int type)
299 return false; 299 return false;
300} 300}
301 301
302#ifdef HAVE_DIRCACHE
302/** 303/**
303 * Returns true if specified flag is still present, i.e., dircache 304 * Returns true if specified flag is still present, i.e., dircache
304 * has not been reloaded. 305 * has not been reloaded.
@@ -307,6 +308,7 @@ static bool is_dircache_intact(void)
307{ 308{
308 return dircache_get_appflag(DIRCACHE_APPFLAG_TAGCACHE); 309 return dircache_get_appflag(DIRCACHE_APPFLAG_TAGCACHE);
309} 310}
311#endif
310 312
311static int open_tag_fd(struct tagcache_header *hdr, int tag, bool write) 313static int open_tag_fd(struct tagcache_header *hdr, int tag, bool write)
312{ 314{
@@ -1301,8 +1303,13 @@ bool tagcache_search_add_clause(struct tagcache_search *tcs,
1301 return true; 1303 return true;
1302} 1304}
1303 1305
1306/* TODO: Remove this mess. */
1307#ifdef HAVE_DIRCACHE
1304#define TAG_FILENAME_RAM(tcs) ((tcs->type == tag_filename) \ 1308#define TAG_FILENAME_RAM(tcs) ((tcs->type == tag_filename) \
1305 ? ((flag & FLAG_DIRCACHE) && is_dircache_intact()) : 1) 1309 ? ((flag & FLAG_DIRCACHE) && is_dircache_intact()) : 1)
1310#else
1311#define TAG_FILENAME_RAM(tcs) (tcs->type != tag_filename)
1312#endif
1306 1313
1307static bool get_next(struct tagcache_search *tcs) 1314static bool get_next(struct tagcache_search *tcs)
1308{ 1315{