summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 1f11f9e49f..7034cacab4 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -822,6 +822,8 @@ static long find_tag(int tag, int idx_id, const struct index_entry *idx)
822 return result; 822 return result;
823 } 823 }
824 } 824 }
825#else
826 (void)idx_id;
825#endif 827#endif
826 828
827 return idx->tag_seek[tag]; 829 return idx->tag_seek[tag];
@@ -3110,7 +3112,10 @@ static bool commit(void)
3110 return true; 3112 return true;
3111} 3113}
3112 3114
3115#ifndef __PCTOOL__
3113static int tempbuf_handle; 3116static int tempbuf_handle;
3117#endif
3118
3114static void allocate_tempbuf(void) 3119static void allocate_tempbuf(void)
3115{ 3120{
3116 /* Yeah, malloc would be really nice now :) */ 3121 /* Yeah, malloc would be really nice now :) */
@@ -4483,8 +4488,11 @@ void tagcache_screensync_enable(bool state)
4483 tc_stat.syncscreen = state; 4488 tc_stat.syncscreen = state;
4484} 4489}
4485 4490
4486 4491#ifndef __PCTOOL__
4487static void do_tagcache_build(const char *path[]) 4492/* this is called by the database tool to not pull in global_settings */
4493static
4494#endif
4495void do_tagcache_build(const char *path[])
4488{ 4496{
4489 struct tagcache_header header; 4497 struct tagcache_header header;
4490 bool ret; 4498 bool ret;
@@ -4595,6 +4603,7 @@ static void do_tagcache_build(const char *path[])
4595 cpu_boost(false); 4603 cpu_boost(false);
4596} 4604}
4597 4605
4606#ifndef __PCTOOL__
4598void tagcache_build(void) 4607void tagcache_build(void)
4599{ 4608{
4600 char *vect[MAX_STATIC_ROOTS + 1]; /* +1 to ensure NULL sentinel */ 4609 char *vect[MAX_STATIC_ROOTS + 1]; /* +1 to ensure NULL sentinel */
@@ -4606,6 +4615,7 @@ void tagcache_build(void)
4606 4615
4607 do_tagcache_build((const char**)vect); 4616 do_tagcache_build((const char**)vect);
4608} 4617}
4618#endif
4609 4619
4610#ifdef HAVE_TC_RAMCACHE 4620#ifdef HAVE_TC_RAMCACHE
4611static void load_ramcache(void) 4621static void load_ramcache(void)